Skip to content
Back

Flutter Android oAuth is no more working

  • 0
  • 1
  • Android
  • Flutter
  • Auth
  • Cloud
borg_1of3
6 Mar, 2026, 20:48

I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the callback url from appwrite is called, but than appwrite complain about a missing redirectURL. The code was working before and it is still working for the rest, just Android has an issue. Any idea?

TL;DR
Google Pixel phones are having issues with Flutter Android oAuth. The problem might be related to how the intent filter or redirect scheme is handled on Pixel devices. It could also be due to the redirectURL not being passed back properly. The solution could involve checking the intent-filter configuration in AndroidManifest and ensuring the redirect URL is handled correctly. Additionally, consider the redirect scheme being used.
6 Mar, 2026, 22:51

it seems to be only an issue on Google Pixel Phones, the same code is working fine on Samsung

7 Mar, 2026, 15:40

I can help with this. It’s likely related to how Android handles deep links/redirect URIs, especially on Pixel devices where the intent filter or redirect scheme might not be resolving correctly. Sometimes it’s also caused by the redirectURL not being passed back properly after the OAuth flow. Are you using a custom scheme or universal/app links for the redirect, and have you checked the intent-filter configuration in your AndroidManifest? <@464532352127860747>

7 Mar, 2026, 20:30

HI thanks for supporting help. i just implemented as it is in the docs. using the Appwrite Flutter SDK. I for this I configured the activity for the flutter_web_auth_2 package as in the docs. To my understanding of the SDK source code, the whole logic is on the Appwrite cloud backend. the SDK just triggers a URL, and with the flutter_web_auth_2 package you just listent to the deeplink this url will redirect to. As the SDK just forwards the information, loosing the redirectURL in the BrowserWindow need to be somewhere in the code from the Cloud Backend, if my understanding is correct. I mean it is working, on iOS, Web. and other Android devices. I also remember that on Pixel devices something is different with the browserview, as in the past (before i migrated to Appwrite) i got the message from GoogleOAuth screen, that they blocked the Auth because this is an old OAuth "Way" that is no more supported.

Does that help?

8 Mar, 2026, 01:30

that helps. Since it works on iOS, web, and other Android devices, it’s likely related to how Pixel handles the browser view or the deep link redirect, which can sometimes drop parameters like redirectURL. I’ve dealt with similar OAuth/deeplink issues before. Feel free to message me privately and I can help you debug it and get it working. Also, what redirect scheme are you currently using?

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