Closed charlesmccann closed 8 years ago
+1
No that is not the desired behavior. I recently added the callback for the cancel message and in doing so I probably caused this bug. I will sort through the code and see if I can prevent the false success callback.
published v0.0.10 to resolve this issue
It's working correctly now. Thanks!
Yes, thank you!
Using the example code, I modified it for my phonegap "app". I'm running this on my Android device (Galaxy s7). The .isAvailable() code runs fine.
However, the .show() always calls the callback before the fingerprint has even been used. So, when cancelling, these are the 2 alerts print every time: success: OK withFingerprint: undefined fail: Cancelled
Is this the desired behavior? are we to watch for specific messages to know if it is truly success or failure?
FingerprintAuth.isAvailable(isAvailableSuccess, isAvailableError);