Closed doanpt closed 11 months ago
@doanpt Are you saying that at ~ 25 seconds the issue resolves itself?
The provided logs show No address associated with hostname
errors. This seems to indicate that the device is not connected to the internet.
This would make sense why you are seeing repeated failures that being working after some time. Is it possible the specific device is in a power saving mode and disconnecting from wifi while the screen is off, and taking some time to reconnect once turned back on?
Closing due to inactivity. Please create a new issue if you are still experiencing issues.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
I am facing similar issue. Once the authtoken expires after 1hr, the user is not logged back in using the refresh token. Infact when debugging, i found that in CognitoUser class, inside readCachedTokens(), all the tokens are null.
@swati-bajaj Please open a new issue with more information if you are facing an issue. I should mention that there is no CognitoUser class in Amplify Android. CognitoUser is only found in the AWS Android SDK. If you are using Amplify v1 (which uses AWS Android SDK under the hood), please first update to Amplify v2. Amplify v1 is no longer supported.
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
Currently we are facing an issue of not being able to refresh the token after the token has expired on some Android devices (most of them are Samsung devices) with the following scenario:
Note: This issue occurred on amplify both of 0.1.32.0 and 2.13.0
Reproduction steps (if applicable)
Code Snippet
Log output
amplifyconfiguration.json
{ "UserAgent": "aws-amplify-cli/2.0", "Version": "1.0", "auth": { "plugins": { "awsCognitoAuthPlugin": { "UserAgent": "aws-amplify/cli", "Version": "0.1.0", "Auth": { "Default": { "authenticationFlowType": "CUSTOM_AUTH_WITH_SRP" } }, "CredentialsProvider": { "CognitoIdentity": { "Default": { "PoolId": "us-east-1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Region": "us-east-1" } } }, "IdentityManager": { "Default": "default" }, "CognitoUserPool": { "Default": { "AppClientSecret": "", "AppClientId": "xxxxxxxxxxxxxxxxxxxxxxx", "PoolId": "us-east-1_xxxxxxxx", "PinpointAppId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Region": "us-east-1" } }, "PinpointAnalytics": { "AppId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Region": "us-east-1" }, "AppSync": { "Default": { "ApiUrl": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.appsync-api.us-east-1.amazonaws.com/graphql", "Region": "us-east-1", "AuthMode": "AMAZON_COGNITO_USER_POOLS" } } } } } }
GraphQL Schema
Additional information and screenshots
No response