GoogleSignIn

504 views
Skip to first unread message

Nuno Rafael

unread,
Apr 19, 2018, 4:48:28 PM4/19/18
to Flutter Dev
Since last update this week, i can't Sign In in my app with google accounts.
i use: 
GoogleSignIn _googleSignIn = new GoogleSignIn();

like i saw in the documents and next i do:


Future<Null> _handleSignIn() async {
GoogleSignInAccount user = _googleSignIn.currentUser;

if (user == null)
user = await _googleSignIn.signInSilently();
if (user == null) {
await _googleSignIn.signIn();
}
but when it call the method .sigIn(); it show the following error:


E/flutter (32169): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (32169): PlatformException(status, Status{statusCode=DEVELOPER_ERROR, resolution=null}, null)
E/flutter (32169): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:544:7)
E/flutter (32169): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:154:18)
E/flutter (32169): <asynchronous suspension>
E/flutter (32169): #2      GoogleSignIn._callMethod (package:google_sign_in/google_sign_in.dart:156:58)
E/flutter (32169): <asynchronous suspension>
E/flutter (32169): #3      GoogleSignIn._addMethodCall.<anonymous closure> (package:google_sign_in/google_sign_in.dart:196:28)
E/flutter (32169): #4      _RootZone.run (dart:async/zone.dart:1376:54)
E/flutter (32169): #5      _FutureListener.handleWhenComplete (dart:async/future_impl.dart:151:18)
E/flutter (32169): #6      Future._propagateToListeners.handleWhenCompleteCallback (dart:async/future_impl.dart:603:39)
E/flutter (32169): #7      Future._propagateToListeners (dart:async/future_impl.dart:659:37)
E/flutter (32169): #8      Future._addListener.<anonymous closure> (dart:async/future_impl.dart:342:9)
E/flutter (32169): #9      _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
E/flutter (32169): #10     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
D/ActivityThread(32169): Remove activity client record, r= ActivityRecord{d60d885 token=android.os.BinderProxy@56a8aef {com.example.tappa/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}} token= android.os.BinderProxy@56a8aef 


and dont sign in, can someone help me? thanks



Mikkel Ravn

unread,
Apr 19, 2018, 5:02:20 PM4/19/18
to nun...@gmail.com, Flutter Dev
The Android platform code receives an error from the Java com.google.android.gms.auth.api.Auth library, and the stack trace you see is from transferring that error to the Dart side as a PlatformException. I think you'd get an error like this by not having a valid google-services.json file as part of your project, but there may be other situations too.

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Mikkel Nygaard Ravn
Software Engineer

Stevanus Djojokusumo

unread,
May 23, 2018, 3:39:35 AM5/23/18
to Flutter Dev
Hi all,

I also facing this issue, 
I have demo working project, that use Google Sign in, it works okay a couple weeks ago,
but right now it is not working,
have tried it multiple times, confirming multiple times for SHA, google-services.json, package name, the previous working project is not working anymore,
create a blank flutter project still having this error
PlatformException(sign_in_failed, Status{statusCode=unknown status code: 12500, resolution=null}, null)

any news?

Best Regards
Stevan

Mikkel Ravn

unread,
May 23, 2018, 9:05:04 AM5/23/18
to uni...@gmail.com, Flutter Dev
You are not getting the same error, so we have little reason to believe this is the same issue.

Stevanus Djojokusumo

unread,
May 23, 2018, 9:18:00 AM5/23/18
to Mikkel Ravn, Flutter Dev
Hi Mikkel Ravn,

Thank you so much for the reply,
May I know if there is a changes?
because I am creating this tutorial for attendees in our Google IO Extended,

Best Regards
Stevan

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mikkel Ravn

unread,
May 23, 2018, 9:31:24 AM5/23/18
to uni...@gmail.com, Flutter Dev
No changes that I know of.

Just tried the example app from the google_sign_in plugin repo (https://github.com/flutter/plugins/tree/master/packages/google_sign_in).
Works fine on both Android and iOS.

Stevanus Djojokusumo

unread,
May 23, 2018, 11:20:33 PM5/23/18
to Mikkel Ravn, Flutter Dev
Dear Mikkel Ravn


Thank you so much for your reply,
it seems there is someone in our team that preparing for the codelab mistakenly delete the code,
apologize for the inconvenience

Best Regards
Stevan

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Mikkel Nygaard Ravn
Software Engineer

Mikkel Ravn

unread,
May 24, 2018, 2:56:23 AM5/24/18
to uni...@gmail.com, Flutter Dev
No worries, happy to help. Have fun with the code lab!

Mikkel Nygaard Ravn
Software Engineer

Reply all
Reply to author
Forward
0 new messages