Closed rdev-software closed 4 years ago
I guess the dart side shouldn't care about invalid fingerprints, as long as the biometric authentication dialog is still open.. so I've just removed the error callback trigger. this should solve the problem. https://github.com/authpass/biometric_storage/commit/a1d5e89e70221c581a03e08c408c1fe4f80d4e22#diff-eb45d3757d0adef57da090a3618a9a22L213
This plugin crash any app, as it sends multiple replies. Main BiometricPrompt dialog is control via Android, and each reply from this dialog is forwarded to plugin, which then cause app crash!
Steps to reproduce (in your example)
APP CRASH, as in 3.step, your plugin send result.error (but dialog is not dismissed)
To fix it you either have to dismiss dialog on any outcome and call it again, to keep architecture request-response. (which might be problem, as you want to support AndroidX API23, which does not have cancellation request I think)
OR
Use streams, and listen to every reply