Setting up Social Logins for Android apps

The social login feature is available for all apps built with AppMySite with code version 1.7.0 and above. 

Enabling social login makes the onboarding process easier and gives your users the option to login to your app with their social accounts.

We recommend that you design your app first and then proceed to set up the social login.

Please note that you will also need to create a Google Firebase account and upload the Firebase configuration file to enable social login. The steps for the same have been included as well.

Enabling social login for Android users:

Follow the steps to enable social login in your Android app:

  • Login to your AppMySite account and navigate to Download app. 
  • Select Build app under Android and generate your app build. Make sure the social login toggle is turned off. 
  • Once the Android build is generated, download it. 
  • Next, login to your Google Play Console account. On All Apps, select the app you wish to enable social login for. 

Please note that if you do not have the app uploaded your Play Store console click here.

  • Select Production from the left panel menu. On the Production screen, choose the Releases tab. Please note that if you already have an uploaded app you can skip the following 3 steps.
  • Click on Create New Release.
  • On the Create New Release screen, click on the Upload button in the App Bundles and APKs section. Upload the Android build you downloaded earlier from your AppMySite account. 
  • Scroll down to enter a release name and release notes. Hit Save to continue.
  • Now head back to AppMySite and go to the Download app section
  • Select Build app under Android app (or select Rebuild app if you already have an app live on Google Play)
    • Note the App bundle ID on the window popup
  • Turn the social login toggle on
  • Open Firebase and create an account on it
  • Create a Firebase Project for your mobile app
  • Go to Project Settings on the Firebase dashboard
  • Open the Your Apps section and select the Add app button
  • Click on the Android icon (you will be directed to a new page here)
  • On the page, enter your Android package name (App bundle ID) and App name
  • Click on Register app when you are done
  • Locate the button to download the google-services.json
  • Download the file and go back to the AppMySite dashboard
  • Upload this file to the Google Firebase Configuration field on the dashboard pop-up
  • From the Firebase dashboard click Build > Authentication and select Sign-In method
  • From here select the Google option
  • From here click Enable and add a support email
  • Continue to Build your app and submit it to Google Play Store