How to add Firebase to Android app?

image
Written by
COO at Inoxoft, former .Net Software Engineer

Firebase is a tool offered by Google. It assists development teams of startups and global enterprises in different platforms (iOS, Android, Web) app building, games, and servers.



Youtube image
Play button

Before adding Firebase to your Android app, you should have:

  • Android Studio
  • Targets API level 16 (Jelly Bean) or later
  • Gradle 4.1 or later
  • Jetpack (AndroidX) with com.android.tools.build:gradle v3.2.1 or later, compileSdkVersion 28 or later
  • Physical device or an emulator with Google Play Services installed
  • A google account to sign in to Firebase

To connect Firebase with your Android app, use the following options:

  1. Firebase console-setup workflow 
  2. Android Studio Firebase Assistant

Option 1.

  1. Create a Firebase project to be able to connect to the Android app
  2. Register your app with the Firebase project
  3. Add a Firebase configuration file to the Android app

To enable Firebase tools in your app, add to Gradle the google-services plugin. Then, configure the app to the required versions.

That’s it!

Option 2.

  1. The Firebase Assistant registers your app with a Firebase project and adds the necessary Firebase files, plugins, and corresponding tools to your Android project on its own. To use it, you should have the latest versions of Android Studio and the Firebase Assistant.
  2. Open the Firebase Assistant: Tools > Firebase. Here, choose a Firebase product you need to add.

Configure the app so that the needed versions are correct and updated. Then, follow the instructions to finish your setup. You can add numerous products via the assistant.

That’s it!

To learn more, visit the developer’s guide here.

How useful was this post?

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Looking for Dedicated Team?
You may also like