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
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...