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

googlesignin exception #6

Open
namdroid opened this issue May 26, 2019 · 9 comments
Open

googlesignin exception #6

namdroid opened this issue May 26, 2019 · 9 comments
Labels
waiting for reply This issue or pull request already exists

Comments

@namdroid
Copy link

i have copied google-service.json to app folder:

Now i get exception at line in emulator and device:
GoogleSignInAccount googleUser = await _googleSignIn.signInSilently();

Exception has occurred.
PlatformException (PlatformException(sign_in_required, com.google.android.gms.common.api.ApiException: 4: 4: , null))

@viju85
Copy link

viju85 commented May 27, 2019

I get a similar error.

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null)

Have been trying several things mentioned on stackoverflow for the same. But still no luck. Any help is appreciated.

@skotwani
Copy link
Collaborator

Did you set the SHA-1 for your app? See more here: flutter/flutter#25640 (comment)

@viju85
Copy link

viju85 commented May 27, 2019

Yes I tried that and ensured SHA-1 is added to the firebase console. Still it doesn't work. Anyone has this working?

@namdroid
Copy link
Author

i have setted own package name, generate new SHA-1, but no luck

@prakhar1989
Copy link
Contributor

@viju85 @namdroid Make sure you create a new app on Firebase with the new package name you've decided to keep. While creating the app, add the SHA1 by running the following (more docs)

 keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore

The password is android. Then copy/paste the SHA1 into the settings page in Firebase for your app. Lastly, remember to rebuild and reinstall the app.

@prakhar1989 prakhar1989 added the waiting for reply This issue or pull request already exists label May 29, 2019
@namdroid
Copy link
Author

@prakhar1989 thanks, but of course i did this step before like in other apps.

@VickySalunkhe
Copy link

hi @namdroid did find any solution ?
I am also facing the same issue.

@viju85
Copy link

viju85 commented Jun 3, 2019

@VickySalunkhe @namdroid I finally got it working by following this solution.

"You need to add support gmail in settings of firebase"
https://stackoverflow.com/a/56286513/341617.

Hope this helps.

@prakhar1989
Copy link
Contributor

Thanks @viju85 for pointing it out! I'll add that part to the getting started steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for reply This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants