Android fingerprint sensor canceled error if caught by another application

I use FingerprintManager in my application, and usually everything works fine. The main problem that I am experiencing is that clients sometimes complain that the fingerprint operation is sometimes canceled, which I see in the logs as error 5 (canceling the fingerprint operation). Now I know that other applications that are not well developed can hold the sensor if they do not release it inPause or similar, so even the lockscreen cannot use the sensor. Is there a way around this problem and get the sensor to start working with my application again?

thank

+4
source share
1 answer

I ran into the same problem and the problem is with Android.

https://code.google.com/p/android/issues/detail?id=208512

This is how I process it in my code.

if (errMsgId != FINGERPRINT_ERROR_CANCELED) {
    // As you see below that error code happens when device is locked.
}

enter image description here

+6
source

Source: https://habr.com/ru/post/1657023/


All Articles