You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In most of tutorials on the web, I can see that the plugin google_sign_in doesn't require firebase. In pub page, it is mentioned that the application must be registered in the following link : https://developers.google.com/mobile/add?platform=android
That link is now redirecting to firebase's homepage. So my question is:
Is it still possible to Sign-in without firebase ? Where should I register the app in that case ?
Click the Create Credentials button, select OAuth Client ID
On the next screen, select Android as the Application Type
Fill in Signing-certificate fingerprint
Fill in Package name
It seems like creating a Firebase app takes care of this step for you (and does a bunch of other things to your GCP project as well), but it's the only thing required for basic login as far as I can tell.
Reacted by Stanislav Bondarenko, Deepika Tripathi, Anoop.P.A and Manuel Duarte 🌋
Updating my instructions from a previous comment to include steps for setting up iOS
For using google_sign_in with a plain Google Cloud project (no Firebase required), here's what I'm doing:
Android
* From the GCP Console for your project, go to **APIs & Services** > **Credentials** (https://console.cloud.google.com/apis/credentials)
* Click the **Create Credentials** button, select **OAuth Client ID**
* On the next screen, select **Android** as the Application Type
* Fill in **Signing-certificate fingerprint**
* For instructions on finding your signing-certificate fingerprint, https://developers.google.com/android/guides/client-auth)
* Fill in **Package name**
iOS
* From the GCP Console for your project, go to **APIs & Services** > **Credentials** (https://console.cloud.google.com/apis/credentials)
* Click the **Create Credentials** button, select **OAuth Client ID**
* On the next screen, select **iOS** as the Application Type
* Fill in **Bundle ID**
* After clicking **Create** a dialog will open with a **DOWNLOAD PLIST** button -- Grab this file and rename it to `GoogleService-Info.plist`
* Open Xcode and put this plist file into the `Runner` folder
Sadly I still get this error:
[_handleGoogleLogin] Google login failed: Exception: Failed to login with Google: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
Exception: Failed to login with Google: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , ...
I verified the SHA-1 hash a million times. Generated a new keystore and tried that. Package name matches in the build.gradle and AndroidManifest too. Tried making new Android credentials in the Google Console. Still nothing unfortunately.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
thehitechpanky commentedon Aug 10, 2019
mhrst commentedon Aug 12, 2019
For using
google_sign_inwith a plain Google Cloud project, here's what I'm doing:It seems like creating a Firebase app takes care of this step for you (and does a bunch of other things to your GCP project as well), but it's the only thing required for basic login as far as I can tell.
thehitechpanky commentedon Aug 12, 2019
This method does not give idtoken
novembrea commentedon Aug 17, 2019
It does, you need to make sure to register both SHA-1 and SHA-256 keys in project settings.
BondarenkoStas commentedon Sep 23, 2019
@omarbelkhodja Is the issue still relevant after comments above?
anoop-ananthan commentedon Mar 13, 2020
Yes, this is a big problem. There don't seem to be any documentation except #36673 (comment). Thanks @truthmast
21 remaining items
jaybe78 commentedon Oct 2, 2024
I followed this documentation https://medium.com/codebrew/flutter-google-sign-in-without-firebase-3680713966fb
Since I've changed classpath 'com.google.gms:google-services:4.3.15'
I'm getting the following issue
requires google-services.json file where that is coming from firebase
this is quite confusing because that issue mentioned by different people is always related to firebase
build-app: 안드로이드 빌드 설정
nevsnirG commentedon Jan 14, 2025
Sadly I still get this error:
[_handleGoogleLogin] Google login failed: Exception: Failed to login with Google: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
Exception: Failed to login with Google: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , ...
I verified the SHA-1 hash a million times. Generated a new keystore and tried that. Package name matches in the build.gradle and AndroidManifest too. Tried making new Android credentials in the Google Console. Still nothing unfortunately.
Dzivo commentedon May 16, 2025
[google_sign_in] Redesign API for current identity SDKs (flutter#9267)
[google_sign_in] Redesign API for current identity SDKs (flutter#9267)
github-actions commentedon Jul 8, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[google_sign_in] Redesign API for current identity SDKs (flutter#9267)
[google_sign_in] Redesign API for current identity SDKs (flutter#9267)
[google_sign_in] Redesign API for current identity SDKs (flutter#9267)