This might help you :) 👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com Source Code: github.com/JohannesMilke/google_signin_iii_example
I have been searching for a tutorial like this for too long, thank you. You solved in 16 minutes while 10+ articles couldn't because all lead to firebase somehow without even mentioning it
Thanks, again Johannes, nice explanation. I wish you could dive deeper in an oauth creating a authentication service with refresh token and token validation. Well, it's a suggestion. :)
Thanks again and again for the great content 😄 1 short question , is there a best use case or we can always use google signin with firebase or without firebase and the application performance will stay the same ? If there is a key difference for when to use firebase or without firebase i think everyone will be happy knowing it 😄
Hello Johannes when I enter the command ./gradlew signingRepor I get and error saying '.' is not recognized as an internal or external command, operable program or batch file. Could you help me with that ??
Thank You Caspar Baumeister! Follow this link: stackoverflow.com/questions/55869438/flutter-build-size-is-more-than-expected/55869780#55869780 I hope you will get your answer 🙂
Thanks Johannes this is a very clear steps. This my first time implementing this on Flutter and I have a question; You showed setup steps for Android and web, does the android setup work also for iOS? If No, do you have a guide for setting up iOS too?
Is there is any way to sent sms from phone to authenticate a user. Example phonepe, Google pay apps. In which sms is sent from clients and no worries on sms limit
bro once i have account selected it is doing auto login on second time how to remove this problem i want when i press login button everytime it asks for account selection instead of auto login pls help
Hi i developed node js Google authentication with passportjs and i want to implement on flutter when I click on login button i need to show Google authentication is it possible?
Very helpful, thank you very much Johannes :D could you please make a video about sign in using Apple ID without firebase? other tutorial on the internet is obsolete since they use apple_sign_in package that no longer maintained, we should use sign_in_with_apple now but no one make video tutorial about it if you don't mind, please consider to make video tutorial about this one :D
Thank You Ren Wang! Follow this link: stackoverflow.com/questions/68964747/flutter-google-sign-in-get-id-token-without-firebase I hope you will get your answer 🙂
Hi, will this all step will work in production mode also ? do we need to add scopes in production mode or its not required ? Will this step are final to implement when we deploy the app to play store ? Or do we need to change anything in build gradle or provide client id ?
Hi@@HeyFlutter, do I need to add firebase config in order to implement sign in with google this way in production mode? because for now it works very well while on debug & release, but once I deployed the app to play store I started getting PlatformException(sign_in_failed, o0.b: 12500: , null, null) Thanks in advance!
Hey Flutter, this was superb explanation but i have one question this was for debug mode right ? now what should i need to perform for release mode when app need to deploy on Google play store. Please can u make a video or provide text explanation in step by step . Thanks in advance,
Hi Johannes, i have one question we do process this kyestore command when we publish the app right. So my question is that do we need to create separate JSK file for google sign in and to publish the app or anyone will work for both ?
Thanks very much ❤❤ I have a question please help My backend needs a client secret and it does work on the web part But not for the android part what should i do ? The android client id doesn't have a secret like the web one
Thank You @sasama7132! Follow this link: stackoverflow.com/questions/63193840/how-to-store-api-keys-in-flutter-july-2020 I hope you will get your answer 🙂
@@HeyFlutter Was able to fix my problem. Had to create firebase app and download the google-service.json file. Also had to not use clientId in the GoogleSign constructor where the scope is
Hello, with iPhone emulator I've a problem: Unhandled Exception: PlatformException(missing-config, GoogleService-Info.plist file not found, null, null). This file usually is downloaded by firebase, but I would create sign in without firebase, anyone can help me? Regards
Hello, I have been working all the time since yestrday to solve idToken return null from flutter google sign in package. from the googlesigninaccount i use authentication object and from this object I call idToken. But it always returns null. please save me?
Thank You Adonias Haile! Follow this link: stackoverflow.com/questions/63891637/getting-idtoken-null-when-using-google-sign-in-in-flutter I hope you will get your answer 🙂
Hi Johannes. I am getting this error message. Are there any recent changes that have been made? Unhandled Exception: PlatformException(missing-config, GoogleService-Info.plist file not found and clientId was not provided programmatically., null, null). Btw I am working on iOS.
Thank You Deep Shrestha! Follow this link: stackoverflow.com/questions/73103392/googleservice-info-plist-file-not-found-and-clientid-was-not-provided-programmat I hope you will get your answer 🙂
is there any way to get phone number also using this dependency, i m only getting name, email, photo, id , serversuthcode, but there is no mobile field in data
Please help me out bro. I am using google sign in with firebase . I have uploaded all the sha keys - debug release and Playstore key still my app is not working in release mode
I have got an error when I tried to fix exception 12500 The error is "Keystore was tampered with, or password was incorrect" I am sure that password is correct. I'm stuck, can anyone help me?
Hello, Cem Ceylan! Follow this link: stackoverflow.com/questions/32987530/android-studio-keystore-was-tampered-with-or-password-was-incorrect I hope it will solve your problem. Thank You 🙂
@@HeyFlutterI created an iOS client just like you did for android on the oauth credential, added the required details but when I press the button to trigger the oauth screen in my iOS app the entire app crashed
How to store the data after auth, so that when the user quits the app, and opens it after a while he is automatically logged in with his google account?
I cant seem to get past the following error. PlatformException (PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)) I added the SHA-1 fingerprint like you showed in the video. What else should I look for to debug this issue?
@@HeyFlutter i have the same issue, the link u provided has solution for google sign in with firebase , but we want solution without firebase plz reply
@@HeyFlutter This is a solution with firebase. I can't seem to get past this exception, I have tripple checked the steps in the video. It would really be a great help if you could help in this regard.
Thank You Fahad Mustafa! Follow this link: stackoverflow.com/questions/54557479/flutter-and-google-sign-in-plugin-platformexceptionsign-in-failed-com-google I hope you will get your answer 🙂
@@HeyFlutter thank you for the reply. But i need to send idToken from google to backend, so that backend will get all the user information, hence user can be verified. If they are verified, only then can they be navigated to another page, else they will get snackbar saying can't verify.
I'm following your instructions step by step but I keep getting this error: "Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)". I already have the SHA1 key generated and updated on the Cloud Console. This method isn't working anymore?? I don't understand what's wrong. I want to use the user's Google Drive account as a backup for the app data, like WhatsApp does. ☹
I'm already implementing Firebase Cloud Messaging service in my app. Could that be making a conflict and I must use Firebase to sign in users as well??? 🤔
Finally I fixed it. I deleted my Google Cloud Console OAuth user and added the SHA1 and SHA256 keys to Firebase, redownloaded the google-services.json file and allowed sign in with Google from the Firebase Project configuration. Now I can login to Google from my Flutter app. 😃😃😃 Now I have to figure out how to access the user's Google Drive account.
@@HeyFlutterhad to use my second account but not an error I was trying to say you should remind people to change icon before the tutorial and for windows user they would likely have to run flutter clean and dart pub update
Hey, Hernan Plaza 🙂 There is also a way to use google login with firebase, in case you want to about firebase for google login, this video solves your problem