-
Notifications
You must be signed in to change notification settings - Fork 121
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
Amplify Auth with InstantApp #2991
Comments
Error: java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder android.system.keystore2.IKeystoreService.asBinder()' on a null object reference |
Hi @dzhumaliev, Amplify v1 also used the KeyStore, however, if the KeyStore failed, it would fallback to an in memory key value repository. I believe this may be what would happen in your scenario, which would be beneficial for an instant app. We actually just updated Amplify v2 in v2.26.0 to use an in memory fallback. Can you tell me what version of Amplify v2 you attempted? Please update to the latest as I think it will work in your use case. If not, please provide us a more detailed crash log so that we can point to exactly where the crash is occurring. |
Got it, I updated version to v2.27.0 but it also crashed. FATAL EXCEPTION: DefaultDispatcher-worker-1 |
Thank you! This is something we should be able to catch and allow the in memory fallback to take place. |
Thank you! Let's stay in touch! |
I've got a PR up with a fix: #2993. Once merged, the fix will go out in our next release. Thank you for the report! |
Thank you! |
We don't make specific release date commitments, but we do try to release once a week when we have updates to go out. |
Perfect! Thanks! |
Hey guys,
Thank you for supporting the libraries we use with pleasure—you’re doing a great job!
Recently, we updated the dependencies of the Amplify Auth project to version v2, and our Instant App crashed with a KeyStore error. As you know, Android Instant Apps don’t have access to the KeyStore, and this is preventing us from releasing our project.
Do you have any recommendations or solutions for this? I’d really appreciate it if you could reach out to me about it!
p.s. I understand that the KeyStore is used for securely storing keys and tokens, but perhaps there are some solutions or workarounds. I’d appreciate your response!
Isak Dzhumaliev
Feb 20, 2025
The text was updated successfully, but these errors were encountered: