Recent Posts

Site Creator

By

By

By

Expanding feature set of your Android App using Firebase

Posted on

Dear Friends

With this post we are going to start our new series of blog post for Integrating Firebase with our android App. But the basic question remains the same. Why ?

 

There are many reasons, few of them I have listed below [ Remember below is not exhaustive list ]

  •  We want to do this because we want to make our application scalable.
  • We need our application to cater a large group of users with extensive feature sets.
  • We want to monetise our mobile app using ads by Google.
  • We want our application to show realtime updates.
  • etc

 

Developers those have developed firebase has done a lot of hardwork and come with this very smart technology called Firebase that has extensive set of features which are ready to be utilised by millions of apps across the globe and utilised by billions or trillions of users across the globe.

 

You must have started getting a feel the firebase is something important to integrate in android apps. You might not be knowing how to integrate firebase but thats ok. I am gonna teach you how to do that. Eminent developers at Firebase Link has already made is very easy to integrate firebase lib in Android.

 

Adding firebase to your project comprises two step.

  1.  You need to make changes at Firebase Console
  2. You need to make changes at your client side mobile application.

 

Step 1 : 

You need to visit link Link

I am assuming you don’t have a firebase or google project yet. you can also import an existing google project but that’s not in the scope of this blog.

Screen Shot 2017-07-06 at 9.54.11 PM

 

After visiting above link you can create a firebase project by following the steps in Firebase console. Once firebase project it created, you need to add the the android app.

Once you try to add an app in Firebase project you will be prompted with below screen

Screen Shot 2017-07-06 at 10.05.06 PM

In above screen you will choose android app and you will see below screen

Screen Shot 2017-07-06 at 10.07.43 PM

In above screen you will add your android app and exactly the package name ( app Id that you see in build.gradle file for android project). Then you add other required data. Also make this a habit to add your dev cert SHA Key at this screen ( although it is optional).

Once you have registered your app , next screen will prompt to download a JSON file. you need to put this JSON file in you android project.

 

Step 2 : 

Here we are adding firebase libraries to android project via gradle. I hope you have already added google play services in your android project . if not, in your root level build.gradle you add it like below

 

After that in you app level build.gradle you add firebase lib in dependencies section

At bottom in same file

 

And now you are ready to include  different firebase libs as per your requirement .

 

Gradle Dependency Line Service
com.google.firebase:firebase-core:11.0.2 Analytics
com.google.firebase:firebase-database:11.0.2 Realtime Database
com.google.firebase:firebase-storage:11.0.2 Storage
com.google.firebase:firebase-crash:11.0.2 Crash Reporting
com.google.firebase:firebase-auth:11.0.2 Authentication
com.google.firebase:firebase-messaging:11.0.2 Cloud Messaging
com.google.firebase:firebase-config:11.0.2 Remote Config
com.google.firebase:firebase-invites:11.0.2 Invites and Dynamic Links
com.google.firebase:firebase-ads:11.0.2 AdMob
com.google.firebase:firebase-appindexing:11.0.2 App Indexing

 

Happy Coding.

 

 

 

 

 

 

 

 

 

 

 

 







Disclaimer: The aforesaid writeup by Relsell Global writer is for the general understanding of the readers. It does not render any professional advice or opinion.

SHARE THIS PAGE!