Unable to set up Google Auth on Flutter

622 views
Skip to first unread message

Maddy

unread,
Aug 2, 2019, 7:11:22 AM8/2/19
to Flutter Dev
Hi Team,

I followed the flutter documentation and also a tutorial(link below), tried to implement Google signin, however, please see the error I got (below)

Links I followed: 

I get to select the email signin, but upon clicking on the email, I get this error message

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 7: , null)
E/flutter (11953): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
E/flutter (11953): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)
E/flutter (11953): <asynchronous suspension>
E/flutter (11953): #2      GoogleSignIn._callMethod (package:google_sign_in/google_sign_in.dart:226:58)
E/flutter (11953): <asynchronous suspension>
E/flutter (11953): #3      GoogleSignIn._addMethodCall (package:google_sign_in/google_sign_in.dart:268:20)
E/flutter (11953): #4      GoogleSignIn.signIn (package:google_sign_in/google_sign_in.dart:339:48)

Any ideas on what could be wrong? Please help

Thank you
regards
Maddy
errorafterlogin.jpeg

Ramón Estay

unread,
Aug 2, 2019, 8:20:13 AM8/2/19
to Flutter Development (flutter-dev)
Hi, you could try this.


  final _googleSignIn = new GoogleSignIn(
    scopes: [
      'email',
    ],
  );

Greetings

Maddy

unread,
Aug 2, 2019, 9:09:45 AM8/2/19
to Ramón Estay, Flutter Dev
Thank you I will try this and revert 

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/8113cfbc-57a6-4639-b9e7-629e693eaa2b%40googlegroups.com.

avioli

unread,
Jan 11, 2021, 8:40:15 AM1/11/21
to Flutter Development (flutter-dev)
Hey Maddy,

Did you have any luck solving your issue? How?

I'm getting a similar PlatformException on Android devices, but with number 10, not 7.

Cheers,
Avioli

Reply all
Reply to author
Forward
0 new messages