flutter_appauth icon indicating copy to clipboard operation
flutter_appauth copied to clipboard

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

Open yhbsh opened this issue 2 years ago • 4 comments

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.

yhbsh avatar Sep 18 '23 08:09 yhbsh

+1

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

LouisDeGuinness avatar Sep 20 '23 06:09 LouisDeGuinness

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.

https://github.com/MaikuB/flutter_appauth/assets/24813524/78fdba44-1e49-4ea1-9c3e-fce0be5e98ff

TJohnRun avatar Sep 21 '23 17:09 TJohnRun

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.

XNORGATE avatar Sep 24 '23 04:09 XNORGATE

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.

LouisDeGuinness avatar Oct 10 '23 11:10 LouisDeGuinness