Google login for Android and iOS devicesUpdated on November 25, 2020, In Category: Appmaker features and Login Setup.
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
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
Step 2: Click on Project Overview and select Project Settings
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
Step 10: Add the below SHA-1 key as a fingerprint
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.
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 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 ———-