Description: I’m using Appwrite with Flutter for Google OAuth login. The authentication flow works fine on iOS and the browser, but on Android devices, after a successful Google sign-in, the redirection back to the app is not working as expected.
Details:
Platform: Flutter (latest), Appwrite SDK (latest)
Login Method: account.createOAuth2Session(provider: 'google',) Behavior on iOS: Works correctly, user is redirected back to the app and the session is created. Behavior on Android: Google login succeeds, but after consent, the redirect does not return to the app. Instead, it either hangs or stays on the browser. Expected Behavior: On success, the user should be redirected back to the app with the session established.
Tried:
- Updated AndroidManifest intent filter for redirect URL.
- <!-- Add this inside the <application> tag, along side the existing <activity> tags --> <activity android:exported="true" android:name="com.linusu.flutter_web_auth_2.CallbackActivity" > <intent-filter android:label="flutter_web_auth_2"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="appwrite-callback-<PROJECT_ID>" /> </intent-filter> </activity>*
- Ensured redirect URL matches in Appwrite console and app config.
- Looking for guidance or examples on fixing the Android OAuth redirection issue for Appwrite + Flutter.
Recommended threads
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...
- User Filter/Sorting/Analytics
Currently the dashboard for users is very limited. I would like to have an option to sort by column and also to filter by column, to for example find users that...