Setting up Social Logins for Android apps

Customers who build their Android and iOS apps with AppMySite, can enable social login for their app users. This feature is available for all apps with code version 1.7.0 and above.

It makes the onboarding process easier and gives your users the option to login to your app with their Google or Apple accounts.

We recommend that you design your app first and then proceed with setting 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 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