Biometric-Auth-Sample
Biometric-Auth-Sample copied to clipboard
Enable to prevent device back button on Android 9 and above
I am implementing switchcompat when biometric is used. When the biometric prompt is visible and without scanning fingerprint if user presses device back button, prompt gets dismissed. How to prevent device back button when prompt is visible? Need resolution asap.
There's no solution for this currently. It's against material design to do such a thing, but if you really need something like this, a quick workaround would be to override onBackPressed() and show the prompt again