-
Notifications
You must be signed in to change notification settings - Fork 549
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
[Android] Getting App crash while login and logout in aws android sdk 2.52.1 #3391
Comments
Hello @VijaySonawane5 is this a fatal crash? |
Thanks @gpanshu , Yes it is fatal crash, I tried v2 as well with same backend aws cognito setup but still same fatal exception. AWS Amplify Logs: pid-618 E keystore2::error: Rc(ResponseCode(7)), "In get_key_entry, while trying to load key info. 10761, Some("com.amazonaws.android.auth.aesKeyStoreAlias")" |
Can you share the aws configuration file (with redacted values) and build.gradle dependencies block? |
@gpanshu Our use case is connect to different aws congnito pools so I have created config json by programatically as follow. class MyClass : Application() {
In Activity:- Amplify.Auth.signInWithWebUI(this, { it -> Amplify.Auth.signOut { override fun onNewIntent(intent: Intent?) { Dependency:- With above hosted UI custom tab opened but getting above exception at start also not getting signin callback result. |
Can you link the generated jsonObject that you create? I want to make sure your structure is good. |
@gpanshu Here is json structure
|
@gpanshu , As we using aws sdk with hosted ui which will launch web login ui using appclientId and cognito domainurl, First login attempt works well and we get idp token as well. But if we logout or clear application cache and try same user again the application has fatal crash. I try to catch some steps when app gets crash as follow In AWSKeyValueStore
|
@VijaySonawane5 I think you are mixing the sdk code with V2 code. If you are using V2 just simply follow how to use webUI here. |
@gpanshu , Yes, we are trying both way sdk and v2, So query is by programatically constructing the AwsConfiguration work using json object as tried above, or awsconfigurations.json file must be part of app. As our usecase is to connect diff aws congnito pools depends on API response. |
@VijaySonawane5 Amplify's AWS SDK for Android and Amplify Android V2 are not compatible with each other. Please use V2 for your purposes to avoid compatibility issues. |
Logs:-
E com.amazonaws.internal.keyvaluestore.KeyNotFoundException: Error occurred while accessing AndroidKeyStore to retrieve the key for keyAlias: CognitoIdentityProviderCache.aesKeyStoreAlias
I Deleting the encryption key identified by the keyAlias: CognitoIdentityProviderCache.aesKeyStoreAlias
E Error in retrieving the decryption key used to decrypt the data from the persistent store. Returning null for the requested dataKey = CognitoIdentityProvider.xxxxxxxxxxxxxx.LastAuthUser
I hsifw() - flags=0, caller=android.view.inputmethod.InputMethodManager.hideSoftInputFromWindow:1858 android.view.inputmethod.InputMethodManager.hideSoftInputFromWindow:1827
I hsifw() ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView D onsize change changed
To Reproduce
Login A user
Logout a user
Again login same user
Environment Information (please complete the following information):
The text was updated successfully, but these errors were encountered: