An Introduction to Firebase

Firebase is a suite of tools to help us develop our mobile application. Google tries with this set of tools that developers don’t use third-party libraries when we add new functionality to our app. We can even mount a server simply and easily in a few steps without knowing any other programming language.


The requirements to develop our app are:

  • Our application must support the API 2.3 (Gingerbread) as minimum version of Android.
  • Use Google Play Services 9.0 version or higher.
  • Having installed the SDK Google Play services.

We must register our project in Firebase console. We click on New Project and enter a name to identify the project and the country where we live.

Now we need to register our Android application within our project in Firebase.

At the first step, we will be asked for the name of our application package. It is important to enter the exact name of the package that you are using in your app. It can only be set when you create an app to your Firebase project. Also, and optionally, you can enter a nickname and a signing certificate debug SHA-1 to try developing some features (dynamic links, invitations and support login Google in Auth).

At the second step, configuration file is downloaded automatically and we must to add in our Android project. Switch to Android Studio Project view to see the ‘root’ directory of your project. Move the ‘google-services.json’ file that you just downloaded in the ‘root’ module of your Android application directory.


Finally, we must to integrate Firebase libraries in our Android project. To do it, we should modify our ‘build.gradle’ files.

  • In the ‘build.gradle’ main root directory must be added:
    buildscript {
       // ...
       dependencies {
         // ...
         classpath ''
  • And in the ‘build.gradle’ module where we will use Firebase we will include the following lines:
    android {
      // ...
    dependencies {
      // ...
      compile ''
    apply plugin: ''

    Analytical functionality is already included in ‘firebase-core’ library, but we can add more libraries to include more Firebase functionality.

Gradle dependency Service Analytics Realtime Database Storage Crash Reporting Authentication Cloud Messaging / Notifications Remote Config Invites / Dynamic Links AdMob App Indexing

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s