I'm using FingerprintManager in my app and usually all works fine. The main issue I have is that customers sometimes complain that the fingerprint operation is sometimes cancelled, what I can see in the logs as error 5 (Fingerprint operation canceled). Now, I know that other apps not developed good can hold the sensor if they do not release it on inPause or similar, so even lockscreen can't use the sensor. Is there a way to get around this issue and force the sensor to start working with my app again?
Thanks
To do so: Go to the “Settings menu” and then search for fingerprint data or management. After that, delete the fingerprint data and try to add a new fingerprint again. After completing it, restart your device and check whether it works or not.
Authentication using a screen lock credential – the user's PIN, pattern, or password. To begin using an authenticator, the user needs to create a PIN, pattern, or password. If the user doesn't already have one, the biometric enrollment flow prompts them to create one.
Biometric login provides a convenient method for authorizing access to private content within your app. Instead of having to remember an account username and password every time they open your app, users can just use their biometric credentials to confirm their presence and authorize access to the private content.
Fingerprint detection may be used to unlock a device, sign in to apps, and authenticate in-app purchases. Standard fingerprint. Enrollment. Authentication.
I faced the same issue, there is an issue raised around this with Android.
https://code.google.com/p/android/issues/detail?id=208512
Here is how I am handling it in my code.
if (errMsgId != FINGERPRINT_ERROR_CANCELED) {
// As you see below that error code happens when device is locked.
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With