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
- 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...
- Display an in-app in the user mobile?
Would it be possible to send a message that would display an in-app in the user mobile?
- Project stuck in read-only mode on free ...
Hi Appwrite team! I’m a student using the free plan, and my project (ID: 68e48f780001232ad879) is currently stuck in read-only mode. I can’t create or update ...