capacitor-biometric-auth icon indicating copy to clipboard operation
capacitor-biometric-auth copied to clipboard

How to cancel BiometricAuth.verify()

Open bernadev91 opened this issue 4 years ago • 3 comments

I am using this plugin. On ios it works great because the touch ID popup has a "cancel" button that can be pressed.

However, in my Android device (One Plus 6T with in-screen fingerprint scanner), the fingerprint overlay appears, but there's no way to cancel it.

If I add a button labeled "Cancel", I can't dismiss it because the plugin is still waiting for the fingerprint to be entered.

Is there any way to cancel or dismiss the action that was initiated by BiometricAuth.verify() ?

That would help with my integration a lot because I can let the user cancel the authentication and enter their login details manually instead. Otherwise they would be forced to use the biometric authentication.

bernadev91 avatar Apr 15 '20 09:04 bernadev91

Hi, I try on Pixel II and has a cancel button, also with back the popup is canceled

Screen Shot 2020-04-18 at 22 42 09

arielhernandezmusa avatar Apr 19 '20 01:04 arielhernandezmusa

@abernabe91 yan you test this?

arielhernandezmusa avatar May 02 '20 14:05 arielhernandezmusa

On my One Plus 6T the fingerprint overlay appears, but there's no way to dismiss it.

And if you use the "back button" gesture, it goes back in the ionic screen stack, but the overlay is still there.

I think it depends from one device to another, that's why it would be positive to have a way to cancel the event manually.

bernadev91 avatar May 02 '20 16:05 bernadev91