Introduction
There are two ways of connecting Firebase to the Android application:
2 - Using Android Studio's Firebase Assistant
In this blog, the 1st way will be demonstrated. (i.e. using the Firebase Console)
Prerequisites
- Update Android Studio to its latest version
- You should have Android Device or Emulator with API level 9 or later and Play services 9.0 or later
- Your app must target API level 16 or later
- Your app must use Gradle 4.1 or later
Steps to add Firebase to your Android App
1. Go to the Firebase website and sign in with your mail ID.

3. Create a new Firebase project
Reuse the same project if you need an iOS version for the same app you are using.
- Click Create a project
- Enter your Firebase project name and click continue
If you wish to add Google Analytics to your Firebase Project, enable Google Analytics. Google Analytics provides a clear view of your app's usage, user engagement and is not limited only to this. So, enabling Google Analytics is recommended.

Choose the Google Analytics location for your Firebase project and accept the terms and conditions, then click create project

4. Add your app
Click Project Overview in the side navigation bar and click the Android icon

Add your Android app's package name. For this, open your Android project on Android Studio. Then, Click Project->Android->Gradle Scripts->build.gradle (Module:app)

Your Package name will be visible as the applicationId

Add a Nickname to your app. This is optional and this is only visible to you on Firebase Console.
Add Debug signing certificate SHA-1. This also is optional but required for Dynamics Links, App invites and Google sign-in and phone number support in Auth. To add this, go to Gradle->your app name->app->Tasks->android->signingReport.

After executing the signing report, get your Debug signing certificate SHA-1 displayed as SHA-1.
Click Register app on your Firebase Console
5. Download Config file "google-services.json" directly to your Android app module root directory or else download and move it into your Android app module root directory.
Steps to find the Android app module root directory:
- Open your Android project folder in File Explorer
- Click app and paste the downloaded JSON file.









Vijayaragavan SPosted Jan 29, 2020, 8:38 PM
Good start Shalini ... All the best..
Lucia MandelaPosted Jan 29, 2020, 8:13 PM
Thanks for sharing this marvelous post. I m very pleased to read this article .I enjoy this site - its so usefull and helpfull.Again thanx Shalini.
Naveenkumar ParamasivamPosted Jan 29, 2020, 7:03 PM
Super .... contribute more
Sai BalajiPosted Jan 29, 2020, 6:01 PM
Nice article