#Flutter Android oAuth is no more working

4 messages · Page 1 of 1 (latest)

left lotus
#

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?

left lotus
#

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

hushed furnace
#

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?
@left lotus

left lotus
# hushed furnace I can help with this. It’s likely related to how Android handles deep links/redi...

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?