-
-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Very slow performance on Android BiometricPrompt #309
Comments
Yes, I'm also experiencing about 2 seconds performance degradation when getting credentials stored in Android, I even disabled the need for Biometrics to see if that made any difference and the reality is that it made no difference. |
Our Application experienced an
So this seems to be more than just a simple delay and more like something that can hinder the user's experience. |
@oblador thoughts about this? |
We are experiencing this on some older Android devices: Device: P2 Lite
|
I have the same issue using the latest version ( Device: Pixel 3a |
Please try out 8.0.0 which has performance improvements |
@oblador Thank you for the update. Unfortunately I can still reproduce the issue by restarting the app a few times. Every 4-6th app start it takes much longer until the prompt shows up (it's about the same as before with Tried it now also on a Huawei P30, where it also happens. It also doesn't matter whether it's a production or debug build. Even if I generate a signed APK and install that one on the device, I can reliably reproduce the issue. To reproduce the issue, I simply have to call The only solution that really helped here was disabling the warmup as described here: #337 (comment) |
This should be fixed with #658 |
There's what I think is a bug on waiting for the Biometric Prompt result, more specifically in this part of the code:
react-native-keychain/android/src/main/java/com/oblador/keychain/KeychainModule.java
Lines 849 to 859 in c854720
Particularly in the case where there's an error in the flow, it takes several seconds for the thread to unblock.
I'll do some more investigation, but meanwhile you can try to reproduce:
The text was updated successfully, but these errors were encountered: