Biometric-Auth-Sample icon indicating copy to clipboard operation
Biometric-Auth-Sample copied to clipboard

Enable to prevent device back button on Android 9 and above

Open onlyrs4u opened this issue 5 years ago • 1 comments

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.

onlyrs4u avatar Apr 02 '19 06:04 onlyrs4u

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

Sammekl avatar Apr 29 '19 14:04 Sammekl