Skip to content
Back

Google sign in

  • 1
  • Android
  • Auth
  • Flutter
okusnik
12 Feb, 2025, 08:46

Hey everyone,

We wanted to share some of the technical challenges we’ve been facing with Google Sign-In in our Flutter app nammed okusnik. Our Appwrite project is configured with a redirect URL for OAuth sign-in: https://cloud.appwrite.io/v1/account/sessions/oauth2/callback/google/67ab12770007ea2d3196

In the Appwrite console, the OAuth callback URL is set exactly as above, ensuring that the session creation happens on Appwrite.

In our AndroidManifest.xml, we have an intent filter configured to catch deep link callbacks: <intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="https" android:host="cloud.appwrite.io" android:pathPrefix="/v1/account/sessions/oauth2/callback/google"/> </intent-filter>

Despite the above configuration, we are encountering a problem:

After selecting the email during the Google Sign-In process, the app shows a black screen. The browser redirects to the callback URL, but it never seems to get properly delivered to the Flutter app. Our logs show that the deep link listener is started, but we never see the expected deep link callback printed out. We’ve spent a lot of time trying to get Google Sign-In working via OAuth with deep linking, but the deep link callback from Appwrite isn’t being delivered as expected—resulting in a persistent black screen after selecting the email account.

We’re open to suggestions, and if anyone has experienced similar issues or has ideas on how to resolve this deep linking problem with Appwrite and Flutter, please share your insights! Thanks for reading, and we hope this discussion helps others who might be facing similar challenges. Can someone help me get the app working?

TL;DR
Developers are facing issues with Google Sign-In via OAuth in a Flutter app using Appwrite. Despite correct configurations for redirect URL and deep link callbacks, the app shows a black screen after selecting the email during the sign-in process. Deep link listener seems to start, but the expected callback isn't delivered. Developers are seeking suggestions and solutions to resolve this problem.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more