flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[firebase_auth]: <Google Sign-In on Android throws com.google.android.gms.common.api.ApiException: 12500 despite correct SHA-1 and OAuth consent screen setup>

Open Jordan3900 opened this issue 8 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues.

Which plugins are affected?

Auth

Which platforms are affected?

Android

Description

Steps to reproduce

I’m trying to integrate Google Sign-In into my Flutter Android app using Firebase Authentication, but every attempt ends with(This happened only on release):

com.google.android.gms.common.api.ApiException: 12500: 
Status{statusCode=SIGN_IN_FAILED, resolution=null}
  1. I'm using google App signing and I have set up the hash keys inside my firebase project.
  2. OAuth Consent Screen (Google Cloud Console)
  • Set the Application name, Support email, and uploaded an App logo.
  • Added my domain under Authorized domains.
  • Provided Developer contact information.
  • Under Verification, my app is marked “Verified”.

The only thing that I'm concern is Firebase console warning inside project settings:

“To update public-facing name or support email, submit a request via Google Cloud Console. The update will require OAuth brand verification.”

I’m not sure if this pending “brand verification” is blocking my sign-in, or if it’s just informational.

Image Image

Expected results

To use google login on my android app.

Actual results

com.google.android.gms.common.api.ApiException: 12500: Status{statusCode=SIGN_IN_FAILED, resolution=null}

The error should be a bug between the consent screen and the Firebase project that is not getting updated.

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[âś“] Flutter (Channel stable, 3.29.2, on macOS 15.5 24F74 darwin-arm64, locale en-US)
[âś“] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[âś“] Xcode - develop for iOS and macOS (Xcode 16.0)
[âś“] Chrome - develop for the web
[âś“] Android Studio (version 2023.3)
[âś“] VS Code (version 1.100.2)
[âś“] Connected device (3 available)
[âś“] Network resources

• No issues found!

Reproducing the issue

When I click sign in with google

Firebase Core version

^3.12.1

Flutter Version

Flutter (Channel stable, 3.29.2, on macOS 15.5 24F74 darwin-arm64, locale en-US)

Relevant Log Output


Flutter dependencies

Expand Flutter dependencies snippet

Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

Jordan3900 avatar May 25 '25 05:05 Jordan3900

Hi @Jordan3900, I'm unable to reproduce this issue. I suspect there might be a misconfiguration on your end. Kindly reference the doc to ensure you're not missing anything. You might also find this StackOverflow thread helpful.

SelaseKay avatar May 26 '25 08:05 SelaseKay

Hi there, since this issue is going stale I will be closing this. Please feel free to reopen if the issue persists.

MichaelVerdon avatar Jul 04 '25 13:07 MichaelVerdon