Moderator
Did you added the needed lines into the android manifest file?
Votes
1
Replies
24
Participants
Unknown
Messages
25
Moderator
Did you added the needed lines into the android manifest file?
Rank 2: Process
yes. but when account.get() I get 401
Moderator
And set project ID there?
Rank 2: Process
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>
Rank 2: Process
xxx is my projec tid
Moderator
Do you have internet permission flag added too?
Rank 2: Process
yes
Rank 2: Process
Moderator
Interesting
Moderator
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>Rank 2: Process
owh
Rank 2: Process
it seems like the android label is wrong as well
yep that too
Moderator
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
Rank 2: Process
ahh damnit 😆
Rank 2: Process
Thank you!
Rank 2: Process
Let me try it out
Moderator
Okay, confirm with us that it works
Rank 2: Process
Thanks @Steven @Maniac_Fighter @D5
Rank 2: Process
Yeap it works! You guys are amazing
Moderator
Great! Glad to hear that. Special thanks to @Maniac_Fighter for finding the issue! :appwritepeepo:
Moderator
[SOLVED] Appwrite Cloud: Google OAuth2 works in iOS emulator, but not in Physical android