fingerlock icon indicating copy to clipboard operation
fingerlock copied to clipboard

Handling FingerprintManager.FINGERPRINT_ERROR_LOCKOUT Through onFingerLockError()?

Open SharpMobileCode opened this issue 7 years ago • 0 comments

After I perform afingerLockManager.start() and I purposely scan a bad fingerprint 5 times. This makes the Google API return a FingerprintManager.FINGERPRINT_ERROR_LOCKOUT error, which states:

The operation was canceled because the API is locked out due to too many attempts.

However, when onFingerLockError() is fired, the error type is FingerLock.FINGERPRINT_UNRECOVERABLE_ERROR. Is this the correct behavior?

I would assume that FingerLock.FINGERPRINT_UNRECOVERABLE_ERROR is an unknown or unrecoverable error. Does this mean it's a FingerprintManager.FINGERPRINT_ERROR_LOCKOUT? How would I specifically handle FingerprintManager.FINGERPRINT_ERROR_LOCKOUT error if an "unrecoverable error" could be anything?

SharpMobileCode avatar Aug 22 '17 20:08 SharpMobileCode