Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google sign-in without firebase #36673

Open
omarbelkhodja opened this issue Jul 22, 2019 · 14 comments
Open

Google sign-in without firebase #36673

omarbelkhodja opened this issue Jul 22, 2019 · 14 comments
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. d: examples Sample code and demos d: stackoverflow Good question for Stack Overflow p: google_sign_in The Google Sign-In plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team

Comments

@omarbelkhodja
Copy link

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 ?

@thehitechpanky
Copy link

Is this planned any sooner?

@mhrst
Copy link

mhrst commented Aug 12, 2019

For using google_sign_in with a plain Google Cloud project, here's what I'm doing:

  • 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
  • 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.

@thehitechpanky
Copy link

This method does not give idtoken

@novembrea
Copy link

It does, you need to make sure to register both SHA-1 and SHA-256 keys in project settings.

@BondarenkoStas
Copy link

@omarbelkhodja Is the issue still relevant after comments above?

@BondarenkoStas BondarenkoStas added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 23, 2019
@iapicca iapicca added d: examples Sample code and demos d: stackoverflow Good question for Stack Overflow p: first party p: google_sign_in The Google Sign-In plugin customer: crowd Affects or could affect many people, though not necessarily a specific customer. and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Nov 11, 2019
@anoop-ananthan
Copy link

Yes, this is a big problem. There don't seem to be any documentation except #36673 (comment). Thanks @truthmast

@christophemacabiau
Copy link

Has anyone a solution to this issue?

@TahaTesser
Copy link
Member

From #73455 by @avioli
#73455 (comment) should be documented to avoid running into issues

@stuartmorgan stuartmorgan added the P2 Important issues not at the top of the work list label Apr 7, 2021
@aacassandra
Copy link

works fine for android and not for ios. i spend a lot of time on ios regarding google login without firebase

@tiagocdr
Copy link

tiagocdr commented Dec 3, 2021

Any Solutions for IOS ? Every solution I have found has been only for android

@toan-ngvan
Copy link

I find the solution. Just download the .plist file from gg cloud, rename the file to GoogleService-Info.plist and put it in Runner.

@simpros
Copy link

simpros commented Feb 15, 2022

Any updates on this?

@zzundalek
Copy link

zzundalek commented May 1, 2022

Please at least clarify it.

  • Is firebase required for google_sign_in to work on iOS?
  • If yes add it to plugin description if no add working example without firebase

Thanks a lot.

@mhrst
Copy link

mhrst commented May 6, 2022

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

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

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Nov 7, 2022
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
@Hixie Hixie removed the plugin label Jul 6, 2023
@flutter-triage-bot flutter-triage-bot bot added team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. d: examples Sample code and demos d: stackoverflow Good question for Stack Overflow p: google_sign_in The Google Sign-In plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team
Projects
None yet
Development

No branches or pull requests