mjwheatley / cordova-plugin-android-fingerprint-auth

A cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+
Apache License 2.0
169 stars 131 forks source link

Cannot dismiss Fingerprint dialog #149

Open WuglyakBolgoink opened 3 years ago

WuglyakBolgoink commented 3 years ago

Hallo guys / @mjwheatley,

I have one problem:

if I open Fingerprint dialog on login page and navigate in background to another page (like "email confirmation" from deeplinking), then Fingerprint.dismiss() on confirmation page doesn't work, but give me success-callback:

FingerprintAuth.dismiss -> Successfully dismissed FingerprintAuth dialog: "Fragment dismissed"

if I manually cancel Fingerprint dialog and navigate to login page, then Fingerprint dialog first show error "Fingerabdruckvorgang abgebrochen" (fingerprint process canceled) and then Fingerprint Dialog stay unavailable and I can't do nothing until I close the dialog and open again.

what the correct way to close the Fingerprint dialog?

onuh commented 2 years ago

Put code in on resume function and set some conditions to trigger it. I had same issue.