Configure Android build for social login

You can enable Google login for your Android app. The sections below explain how you can enable social login for your Android app.

Watch our video tutorial to configure social login for Android app build and to set up your Firebase account:

Enable social login for your Android app

Follow the steps below to enable social login for your Android app:

  • Navigate to Download from your AppMySite account. 
  • Select “Build Android app”. You will be directed to the Android build configuration screen. 
  • Turn on the enable social login toggle. 
  • Generate your SHA-1 key and upload the Google Firebase Configuration file. The section below details how you can generate your Google Firebase Configuration file.

Generate Google Firebase Configuration file

Follow the steps below to generate a Google Firebase Configuration file for your Android app:

  • Go to Firebase and create your own Firebase account. Once you sign up for an account, create a new project. You can enter any project name you like, and even choose to connect your Google Analytics account with it. Visit our Help Centre article on how to create a Firebase Project.

Read: Create a Firebase project

  • Once your project is created, you’ll be directed to your Firebase account’s dashboard. 
  • Click on the Android icon on the main screen. 
  • On a new page, enter your Android app’s bundle ID and app name. You can also enter the SHA-1 key generated in your AppMySite account here. 
  • Click on Register app.
  • Click the button to download the google-services.json file.
  • Again hit Next for the following step click Continue to Console at the end. 
  • Copy the server key. It will be available under Project Credentials.

Generate your Android build

  • Navigate to the Android build configuration screen. 
  • Enter your Firebase Server key and upload your Configuration file. 
  • Click on Build app to generate your Android build.