Google login for Android and iOS devices

Creating a new username and password for each app, and remembering them can be tedious. Thankfully, most apps use social login features such as Google login to make logging in easier and faster. Get the Google login feature for your app too and increase your user acquisition.

Configuring the Google login feature in your Android and iOS devices

Note: Google login will not work if Push Notifications are not configured. It will show an error when uploading IPA without the configuration.

Step 1: Setup Push Notifications for Android and iOS apps, and Firebase analytics

Follow the steps mentioned in the link and set up push notification and Firebase to proceed further.

Step 2: Go to your Appmaker dashboard and click Update App. The Update App page appears

Appmaker Dashboard

Step 3: Select ADD-ONS and enable Google login by clicking on the Enable Google login button

Step 4: Click Submit

After this step, open Firebase and login to your app account:

Step 1: Login to your app account

Google Firebase project tabs

Step 2: Click on Project Overview and select Project Settings

Google Firebase project overview

Step 3: Copy the Project ID. This needs to be done for security reasons

Step 4: Go to your Appmaker dashboard and click on Settings

Step 5: Select Social login and paste the project ID in the Firebase Project ID field

Step 6: Click Save

Step 7: On the Firebase dashboard, click Project Overview 

Step 8: Select Project Settings, the settings page appears

Step 9: Scroll down and click on the Add fingerprint for Android apps

Adding fingerprint on firebase

Step 10: Add the below SHA-1 key as a fingerprint

ed:34:3a:18:65:11:42:b5:44:7f:0d:c3:41:67:08:68:ab:9a:05:dc

Step 11: Next, go to Authentication and click Get Started

Step 12: Click on Google to edit and enable the button

Step 13: Enter your app name without space in the Project public-facing name field

Step 14: Enter email id in the Project support email field and click Save to complete the process

To test the Google login in the app, download the latest apk version from your Appmaker dashboard and test the app.

Note:

The Google login feature will now work for both Android and iOS devices. You can now publish the app or release an updated version of the app in the Apple app store and Google Play Store. The app will now work properly with the Google login feature on iOS devices. However, for Android, there is an additional step that needs to be implemented after the app is published in Google Play Store.

Additional step after you release the app to Google Play Store

Step 1: Publish the app in Google Play Store

Step 2: Once the app is published, go to your Google Play Console

Step 3: Click Release management and select App signing, the App signing page appears

Step 4: Go to App signing certificate and copy the text after SHA1 from the SHA-1 certificate fingerprint

Note:  Do not include the text SHA1 while copying

Step 5: Go to Firebase

Step 6: Click on Project Overview and select Project Settings

Step 7: Scroll down and click on Add Fingerprint for Android apps

Step 8: Paste the SHA1 text in the box under the SHA certificate fingerprints to complete the process

You are good to go now! Users can now login to your app using this easy-to-go Google login feature.

———- END ———-