In Android 10 devices, Biometric prompt is failing with BiometricPrompt.ERROR_CANCELED
all the time on top of the lock screen. Error is returned in onAuthenticationError
callback of BiometricPrompt.AuthenticationCallback
class.
The biometric prompt authentication is working when the device is unlocked.
is it possible to have biometric prompt authentication done on top of device lock screen in Android 10 when setDeviceCredentialAllowed is set to true?
Update: The issue is only when setDeviceCredentialAllowed is set to true. i.e if Devicekeyguard is made as fallback in BiometricPrompt , the authentication is not working on top of lock screen.