Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Android
Description
Google Sign-In (google_sign_in + firebase_auth) fails exclusively on builds distributed via Google Play (signed with Play App Signing). It works perfectly on debug builds and on local release builds signed with my own upload key.
Exact error on the Play Store build:
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
What I already verified:
- Play App Signing SHA-1 registered in Firebase Console (+ SHA-256)
- Same SHA-1 present in google-services.json as oauth_client (client_type 1)
- Android OAuth client with that SHA-1 + correct package exists in Google Cloud Console
- serverClientId in code matches the Web client ID in Firebase Auth > Google sign-in method exactly
- OAuth consent screen is "In production"
- All OAuth clients belong to the same project number, no duplicates sharing the SHA-1
- Tested WITH and WITHOUT serverClientId — identical code 10
- Persisted for several days, so it is not OAuth propagation delay
Expected: sign-in should succeed on Play App Signing builds as it does on locally-signed release builds.
Actual: DEVELOPER_ERROR (code 10) only on Play-distributed builds.
Reproducing the issue
- Build a Flutter app with google_sign_in + firebase_auth, using GoogleSignIn with serverClientId (Web client ID).
- Register all SHA-1 fingerprints (debug, upload key, and Play App Signing) in Firebase Console.
- Upload the AAB to Google Play (Play App Signing enabled).
- Install the app from Play Store (closed testing track).
- Tap "Sign in with Google", select an account.
- Result: PlatformException sign_in_failed, ApiException code 10. The same build installed locally via adb (signed with upload key) works fine.
Firebase Core version
3.15.2
Flutter Version
3.41.9
Relevant Log Output
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
Flutter dependencies
flutter 3.41.9 / Dart 3.11.5
firebase_core 3.15.2
firebase_auth 5.7.0
google_sign_in 6.3.0
firebase_analytics 11.6.0
firebase_crashlytics 4.3.10
cloud_firestore 5.6.12
in_app_purchase 3.3.0
Additional context and comments
Login works on debug and locally-signed release builds, fails only via Play Store distribution.
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Android
Description
Google Sign-In (google_sign_in + firebase_auth) fails exclusively on builds distributed via Google Play (signed with Play App Signing). It works perfectly on debug builds and on local release builds signed with my own upload key.
Exact error on the Play Store build:
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
What I already verified:
Expected: sign-in should succeed on Play App Signing builds as it does on locally-signed release builds.
Actual: DEVELOPER_ERROR (code 10) only on Play-distributed builds.
Reproducing the issue
Firebase Core version
3.15.2
Flutter Version
3.41.9
Relevant Log Output
Flutter dependencies
flutter 3.41.9 / Dart 3.11.5
firebase_core 3.15.2
firebase_auth 5.7.0
google_sign_in 6.3.0
firebase_analytics 11.6.0
firebase_crashlytics 4.3.10
cloud_firestore 5.6.12
in_app_purchase 3.3.0
Additional context and comments
Login works on debug and locally-signed release builds, fails only via Play Store distribution.