Fingerprint API behavior when device is locked

687 views Asked by At

I have an app which has a service that can be launch when the device is locked, and this service is launching an activity of my app (even with the device locked). In this activity, I'm using the Google Fingerprint API in order to identify the user. I've tested in two devices with Android 6.0.1 (Samsung Galaxy S6 and Google LG Nexus 5X) with different results:

My questions are:

  • Does anybody know why these behavoir differences?
  • Does anybody know if we can use this authentication method with the device locked?

Same service/activity/authentication workflow is working perfectly when both devices are unlocked and also when the app is in either background/foreground.

Thanks!

1

There are 1 answers

0
achojoao On BEST ANSWER

Introducing a delay of 1 second (with handler.postDelayed) before calling authenticate method, worked for me