Open y-marion opened 7 years ago
I am facing the same issue were the application crashes with exactly the same exception.
In my case the crash happens when the plugin is called while the application is running in the back ground (not active in the foreground). It is happening a lot in my application because I have a timeout that triggers the application to logout the user and display the login screen where the plugin is called there.
In that login page I am using the following code:
this.keychainTouchId.isAvailable()
.then( ()=> {
this.keychainTouchId.verify("PIN", "SmartPass")
.then ((password) => {
// some code ...
});
});
I had fixed the issue in the above commit https://github.com/MoemenMostafa/cordova-plugin-keychain-touch-id/commit/a472a56a92814fcfdd197daaa670383cb82f9d9b and I had created a pull request
Thanks @MoemenMostafa , Is there going to be a new version release for the fix?
@malwatte, you can use my branch until @sjhoeksma merge my pull request.
You can install it as follows:
cordova plugin add https://github.com/MoemenMostafa/cordova-plugin-keychain-touch-id
I am using your plugin and some of my users are reporting random crashes on Android with the following error message:
I have not been able to replicate this exception exactly, so i was wondering if someone here had some insight on what could be going on. In the repository, on which the Android part is based on, a similar error has been recorded and fixed, although i'm unsure if this is applicable here: https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth/issues/46
see https://github.com/y-marion/cordova-plugin-keychain-touch-id/commit/2617e487cffa63e2e49a5aa12c6cc5589ceed677 for the implementation which fixes this bug for me