Open mgoforth opened 6 years ago
This is now 'fixed' by logging to console instead of throwing an error (#20), I'm gonna leave this issue open though, as the underlying issue has not been fixed as of yet (which is it getting called multiple times in the first place)
Hi,
First off, thanks for putting this plugin together it really saved me a lot of time with our new ReactNative project!
I'm currently seeing a few cases where the
AssertionError
is being thrown due to anull
Promise in theAuthenticationCallback
. I haven't been able to isolate the root cause, but it appears to be somewhat timing related with acancel()
being called.On Authentication Succeeded:
On Authentication Error:
I know the Android Fingerprint documentation specifically mentions that after the
onAuthenticationError
callback executes no other callbacks should be called, but either that isn't true 100% of the time or there may be a currency issue of some kind. Regardless, would you consider downgrading the thrownAssertionError
to log a warning instead? This would prevent a full application crash in these situations and shouldn't affect the existing JavaScript API since the Promise has already been resolved/rejected.