skip to Main Content

I have a Flutter app where I use Google Sign in.
In general, everything works fine but some (~5-10%) of the users are experiencing a really weird bug where they just cannot click on Google account when signing in.
There is no error in Crashlytics. And I cannot reproduce it but it does happen to some of the users.

On the video you can see that user is clicking on his account, but the dialog is not responsive.

enter image description here

I’m running the following code however, I have no idea how to debug nor how to reproduce the issue.

GoogleSignIn(scopes: ['email']).signIn()

Has anyone experienced anything like that? Any help would be highly appreciated.

3

Answers


  1. Try this

        GoogleSignIn(
          scopes: [
            'email',
            'https://www.googleapis.com/auth/userinfo.profile',
          ],
        ).signIn();
    
    Login or Signup to reply.
  2. I am facing this same issue some time ago and i just upgraded the google sign in package from (https://pub.dev/packages/google_sign_in) and solved my issue.

    I Hope this things are solve your issue.

    Login or Signup to reply.
  3. I would suggest updating the package version.I have faced the same issue some time back it was solved by clearing the packages and cache.

    run
    flutter clean
    then run flutter pub cache clean
    . next run flutter pub upgrade

    this might solve your issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search