[SOLVED] Appwrite Cloud: Google OAuth2 works in iOS emulator, but not in Physical android
- 1
- Flutter
- Accounts
Did you added the needed lines into the android manifest file?
yes. but when account.get() I get 401
And set project ID there?
yes:
<activity android:name="io.appwrite.views.CallbackActivity" android:exported="true">
<intent-filter android:label="android_web_auth">
<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-xxx" />
</intent-filter>
</activity>
xxx is my projec tid
Do you have internet permission flag added too?
yes
Interesting
Then there should be any issue with your dart code 🤔
your activity name seems to be incorrect
<activity android:name="com.linusu.flutter_web_auth_2.CallbackActivity" android:exported="true"> --> This should be exact
<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]" /> --> Your ProjectId
</intent-filter>
</activity>
owh
it seems like the android label is wrong as well
yep that too
Just realised 👀 that's the problem then
so what's happening is its trying to detect another activity of that name but since there isn't any custom code available, it doesn't do anything
ahh damnit 😆
Thank you!
Let me try it out
Okay, confirm with us that it works
Thanks @Steven @Maniac_Fighter @D5
Yeap it works! You guys are amazing
Great! Glad to hear that. Special thanks to @Maniac_Fighter for finding the issue! :appwritepeepo:
[SOLVED] Appwrite Cloud: Google OAuth2 works in iOS emulator, but not in Physical android
Recommended threads
- CORS error only on tables db api After u...
I've recently updated my self hosted appwrite instance to the 1.8.0 and updated my frontend with the tables db apis but strangely, even if I'm able to log in, g...
- [SOLVED] Access ExecutionStatus of a fun...
I am calling a cloud function from the newest Flutter SDK 20.2.1with the `xasync: false` flag and get the result, but the `execution.status` is not a String and...
- Appwrite isn't accepting the api from se...
Error creating user: AppwriteException: Server Error type: 'general_unknown', response: '{"message":"Server Error","code":500,"type":"general_unknown","versi...