Julien GUIBERT
 · appycloud.fr / tripwego.com

Google Sign-In with Android not working

Troubleshooting

Hello, I'm having trouble with Google Sign-In in my Android project "TripWeGo" in internal testing on the Google Play Store.

I initially suspected a SHA matching error, but the issue persists even in a simplified test app "test-gsi" with only the Google Sign-In feature.

I can't login when testing directly on my physical Android phone with FlutterFlow (connected via USB with developer mode enabled), see caps.

PlatformException(exception, ERROR, null, null)

The PWA version of my project is available at https://test-gsi-glkqbw.flutterflow.app/

Do you have an idea ?

Maybe it's my phone ? 🤔

  • Pixel 6a

  • Android version : 14

Launching lib/main.dart on Pixel 6a in debug mode...
Upgrading build.gradle
Running Gradle task 'assembleDebug'...                              4,4s
✓ Built build/app/outputs/flutter-apk/app-debug.apk
Syncing files to device Pixel 6a...                                 33ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on Pixel 6a is available at: http://127.0.0.1:50163/9uZbf4uS7hs=/
D/CompatibilityChangeReporter(13213): Compat change id reported: 3400644; UID 10540; state: ENABLED
The Flutter DevTools debugger and profiler on Pixel 6a is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:50163/9uZbf4uS7hs=/
I/company.testgsi(13213): Background concurrent mark compact GC freed 6588KB AllocSpace bytes, 18(800KB) LOS objects, 85% free, 4174KB/28MB, paused 891us,7.969ms total 115.344ms
I/TRuntime.CctTransportBackend(13213): Making request to: https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog
D/TrafficStats(13213): tagSocket(5) with statsTag=0xffffffff, statsUid=-1
I/TRuntime.CctTransportBackend(13213): Status Code: 200
I/ContentCaptureHelper(13213): Setting logging level to OFF
D/CompatibilityChangeReporter(13213): Compat change id reported: 78294732; UID 10540; state: ENABLED
D/VRI[SignInHubActivity](13213): visibilityChanged oldVisibility=true newVisibility=false
W/WindowOnBackDispatcher(13213): sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@d51ffc0
E/flutter (13213): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(exception, ERROR, null, null)
E/flutter (13213): #0      GoogleSignInApi.getAccessToken (package:google_sign_in_android/src/messages.g.dart:250:7)
E/flutter (13213): <asynchronous suspension>
E/flutter (13213): #1      GoogleSignInAndroid.getTokens.<anonymous closure> (package:google_sign_in_android/google_sign_in_android.dart:68:15)
E/flutter (13213): <asynchronous suspension>
E/flutter (13213): #2      GoogleSignInAccount.authentication (package:google_sign_in/google_sign_in.dart:95:9)
E/flutter (13213): <asynchronous suspension>
E/flutter (13213): #3      googleSignInFunc (package:test_gsi/auth/firebase_auth/google_auth.dart:14:16)
E/flutter (13213): <asynchronous suspension>
E/flutter (13213): #4      FirebaseAuthManager._signInOrCreateAccount (package:test_gsi/auth/firebase_auth/firebase_auth_manager.dart:288:30)
E/flutter (13213): <asynchronous suspension>
E/flutter (13213): #5      _GoogleSignInWidgetState.build.<anonymous closure> (package:test_gsi/pages/google_sign_in/google_sign_in_widget.dart:113:34)
E/flutter (13213): <asynchronous suspension>
E/flutter (13213): #6      _FFButtonWidgetState.build.<anonymous closure> (package:test_gsi/flutter_flow/flutter_flow_widgets.dart:116:19)
E/flutter (13213): <asynchronous suspension>
E/flutter (13213): 
D/VRI[MainActivity](13213): visibilityChanged oldVisibility=true newVisibility=false
I/TRuntime.CctTransportBackend(13213): Making request to: https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog
D/TrafficStats(13213): tagSocket(5) with statsTag=0xffffffff, statsUid=-1
I/TRuntime.CctTransportBackend(13213): Status Code: 200
What have you tried so far?

Create a simple application only with "Google Sign-In" feature

Did you check FlutterFlow's Documentation for this topic?
Yes
3
4 replies