MaikuB/flutter_appauth

Not redirecting to the app after google sign in. (Android only, Works as intended in iOS)

yhbsh opened this issue · 4 comments

yhbsh commented

I Want to add google sign in to my flutter app.
I Followed the instruction in the README.md, step by step.
New google cloud project. generate client id. configure consent screen. implement the appauth in flutter.

Works well on ios. but on Android it does not. the sign in is completed and the login does not redirect back to the app. i don't know what to do.

+1

Same behavior on my side, iOS working correctly, Android not redirecting after login.

I ran the flutter_appauth demo app in an Android 13 SDK 33 and SDK environment and the result is the same. iOS works fine. Android fails to return to the app.

Screen.Recording.2023-09-21.at.1.31.35.PM.mov

same here , i find out someone is doing this
https://stackoverflow.com/questions/76971239/supabase-auth-redirects-to-google-com-instead-of-my-app

but i haven't realized what should i put into the account_id , i've put the applicationId but it didn't works.

After double-checking the "appAuthRedirectScheme" in the build.gradle of the android app and the "redirectUrl" parameter of the authorize method the problem is gone.

Why iOS was working though, no clue.