-1

I'm working on implementing biometric authentication using BiometricPromptCompat in my Android app. I've come across an issue where I'm getting an error message:

"BiometricPromptCompat E Unable to start authentication. Called after onSaveInstanceState()"

Here's the scenario:

I have a situation where I need to trigger biometric authentication, even when the activity might be in a paused state or onSaveInstanceState() has been called. However, I understand that calling the authentication process in such a state is causing the error mentioned above. I'd like to know the best approach to handle this situation. How can I initiate the biometric authentication process even when the activity might be paused or after onSaveInstanceState() has been called? Is there a way to properly delay the authentication process and then resume it when the activity is back in focus?

0 Answers0