Home » Android » Android Biometric Prompt is not dismissed when device home button is pressed-Exceptionshub

Android Biometric Prompt is not dismissed when device home button is pressed-Exceptionshub

Posted by: admin February 26, 2020 Leave a comment

Questions:

When Biometric prompt is shown in App with setDeviceCredentialAllowed(true), It is not dismissed when device home button is pressed. It throws BiometricPrompt.ERROR_USER_CANCELED error and keeps the System UI as is.

Did any one face this issue ? Is there any workaround kind of thing ?

Note :
I am using androidx.biometric:biometric:1.0.1

How to&Answers:

I found this bug when I tried this library.
The problem is they implemented it as a fragment, and it’s not responding well to this thing.

I opted out of using this library all together and just implemented it myself.