-
Notifications
You must be signed in to change notification settings - Fork 127
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
Language and Async Model
Java
Amplify Categories
Authentication
Gradle script dependencies
implementation 'com.amplifyframework:core:1.38.8'
implementation 'com.amplifyframework:aws-auth-cognito:1.38.8'
Environment information
Put output below this line
Gradle plugin version 7.1.2
Gradle version 7.2
Please include any relevant guides or documentation you're referencing
Describe the bug
I have exactly same issue with this ticket https://github.com/aws-amplify/amplify-android/issues/2218
I saw the issue closed but not been given a solution.
I was trying to jumping amplify version from 1.2.0 to 1.38.8 which is the latest amplify v1 version. I am upgrading this because sign in is completely not working in API 34 devices.
So the upgrading will make the sign in works, but for sign out I am getting time-out.
I have followed the instruction to use HostedUIRedirectActivity in AndroidManifest and uncomment Amplify.Auth.handleWebUISignInResponse(data)
Suggestion?
fyi: this is old project not considering to migrate amplify v2 for now
Reproduction steps (if applicable)
call the signout function
user be redirected to signout web
keeping loading
after a few seconds webview closed
Code Snippet
// Put your code below this line.
<activity
android:name="com.amplifyframework.auth.cognito.activities.HostedUIRedirectActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/app_shcema" />
</intent-filter>
</activity>
<activity
android:name="com.aircanada.flightpass.ui.screens.BaseNavigationActivity"
android:exported="true"
android:screenOrientation="portrait"
android:launchMode="singleInstance"
android:windowSoftInputMode="adjustNothing">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/app_shcema"
android:host="signout"
/>
</intent-filter>
</activity>Log output
// Put your logs below this line
amplifyconfiguration.json
No response
GraphQL Schema
// Put your schema below this line
Additional information and screenshots
No response