-
Notifications
You must be signed in to change notification settings - Fork 117
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
KeyStoreException when AWS Cognito tries to create EncryptedSharedPreferences #2510
Comments
Hi @reisfernanda can you advise what is your |
Hello @gpanshu, |
This is a known issue however we will investigate how we can fix it or help you fix it. |
Nope I think you have provided all you can provide. We will investigate and get back to you. In the meantime have you tried not have the androidBackup line in your manifest? |
No, I didn't try to remove the |
@reisfernanda unfortunately since this is a known issue with the platform, as a library there is nothing we can do about it nor we can recommend or endorse solutions that we have not tested that are on the thread that have worked for people. If you figure out a solution that would work please reply to this thread to help the community but as for this issue, this is working as designed. I hope this helps. |
|
But I have same issue in "EncryptedKeyValueRepository" class. Here is the crash output from :
And already define |
Is there a way to fix it? |
Before opening, please confirm:
Language and Async Model
Kotlin - Coroutines
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Our crash monitoring is reporting some occurrences of an
android.security.KeyStoreException
(com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.encryptInternal
) under the creation ofEncryptedSharedPreferences
(com.amplifyframework.core.store.EncryptedKeyValueRepository
).I couldn't reproduce the issue in any way, but the rare users that find this problem can reproduce it frequently.
I'm not sure when this is happening but I believe it's when the app is starting since 100% of the occurrences happened with the app in background, and also because these occurrences happen before the application can send logs related to fragments creation.
This crash happens on the devices:
Another crash with the same exception also happens but for
com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decryptInternal
Reproduction steps (if applicable)
No response
Code Snippet
Log output
amplifyconfiguration.json
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: