
I am currently trying to implement the google authentication in my Flutter App but when you choose an account the app stops and its not able to login
I have written this code in my AndroidManifest :-
<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-[PROJECT_ID]" /> </intent-filter> </activity>Kindly help if you know anything about this

I hope you replaced the [PROJECT_ID] with your actual project id

yes I did

but even after that its not working

If you can share your Appwrite console photo of Setting up google signIn & Flutter code, I can help you out


here you go

In your google cloud console, you're required to add some test emails in development. Add the emails there and try signin again

Also make sure to add this redirect URI

what to add in redirect URI

i have already added the test emails

Scroll down and you will find the redirect uri

Also remember adding this as web in the Google cloud panel, instead of as Android

Just to extend on this point -
When you use Google OAuth in your flutter x appwrite project, always add a WEB
platform on your Google Cloud Console. If you've used oauth with appwrite before, you might have noticed that the oauth flow takes place in a browser, and not directly in your app. This is why you need to make sure to add a WEB
platform to your GCP.

https://github.com/appwrite/docs/pull/369
It's about to get added in the docs

make sure to clean and rebuild after

it would help if you clarified this:
app stops and its not able to login
Recommended threads
- Error response from daemon: driver faile...
on endpoint appwrite-traefik (00bbc10e5875d0c367d8975c6abc946a77b7ec201a64a825399add44fb34ebb4): failed to bind port 0.0.0.0:80/tcp: Error starting userland pro...
- "Memberships privacy" setting in 1.7.4
Hi everyone, I'm experiencing an issue with a clean self-hosted installation of Appwrite version 1.7.4. I previously used version 1.6.1, and if I remember corre...
- OAUTH2 doesn't works
https://github.com/202420505/APPWRITE-GOOGLE-AUTH Is my code wrong? I think this is also related to deeplinks
