10.1 Google Login

Go to your Firebase console>Your Project>Authentication>Sign-in-method and enable Google and save it.

Android Setup

  1. You have to configure some stuff for Google sign-in. Go to the Google Cloud Console.

Google Cloud Console: https://console.cloud.google.com/apis/credentials/consent?project=travel-hour-252505

  1. Make sure you are signed in with the same account with which you have created the Firebase project. Also, make sure that on the top-left corner, your project is selected for which you are filling this consent.

  1. Now Click on the OAuth consent screen tab > External > Create and start filling out the form.

  2. Enter the Application name, Application logo & Support email.

  1. In all these places, you have to enter the same link starting with https:// then your app domain name which I have marked with green below.

  2. Then, scroll down and fill in the Application Homepage link, Application Privacy Policy link, and Application Terms of Services link.

  1. Save the form by clicking on the Save button.

Generate Debug Certificate

  • To generate a debug certificate, run this command on your terminal from your app

    root directory.

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

If this command doesn’t work, then go to this link and copy the debug command from there according to your os.

  • Use ​android as a debug password when the terminal asks for a password.

  • Copy the SHA1 certificate code and go to Firebase Console > Your Project > Project Settings and click on the android icon and then add the SHA1 code by clicking ​add fingerprint​ button. Look at the picture below:

Generate Release Certificate

To generate a release certificate,

  • Run with replacing your alias_name and keystore_location.

keytool -list -v -keystore keystore_location -alias alias_name

Your alias_name is upload and keystore_location is the path(directory) of the upload-keystore.jks file.

  • After that, you will get a SHA1 code. Copy that code and add it to your Firebase Console > Project Settings > Android, where you previously added a debug SHA1 code.

iOS Setup

From the Source code, go to the ios/runner/GoogleService-info.plist​ file from your IDE or from Xcode and copy the REVERSED_CLIENT_ID. (See the picture below)​

  • Go to the i​os/Runner/Info.plist​ file and replace the R​EVERSED_CLIENT_ID here.

Last updated