Home Tutorials How to Connect Firebase to your Android Project

How to Connect Firebase to your Android Project [Step by Step Guide]

For all Android Developers, Firebase is an important part of their development process. But in a nutshell what is Firebase? Think like it as a platform which allows building web and mobile applications without a server-side programming language. You can store users data on its real-time database which sync data among users data in no time.

Firebase in Technical words

Firebase is a technology that allows you to make web applications with no server-side programming so that development turns out to be quicker and easier. It supports the web, iOS, OS X, and Android clients.

Android Apps using Firebase can utilize and control information, without thinking about how the information would be put away, and synchronized crosswise over different examples of the application in real time.

With Firebase, you don’t need to stress over-provisioning servers or building REST APIs with just a little bit of configuration; you can allow Firebase to make a chance to take every necessary step: storing data, verifying users, and implementing access rules.

There are various benefits of Firebase that relate to the core technology of advancement.

  • Firebase Real-time Database
  • Firebase Auth
  • Firebase Storage
  • Firebase Crash Report
  • Firebase App Indexing
  • Firebase Analytics
  • Firebase Test Lab for Android
  • Firebase Cloud Messaging
  • Firebase Notification
  • Firebase Remote Config

These are just a few of the benefits which I have listed above.

In this tutorial, I am going to teach you how you can connect and use Firebase with your very own Android Application

How to Connect Firebase to your Android Project

1. Open Android Studio and open the project in which you want to connect firebase.

2. After the project is opened, select Tools option from Menu >> Select the Firebase option [Fig.1]

1
Fig.1

3. It will open Assistant Tab on the right-hand side and you can select options as per your requirement. We have selected Authentication feature. [Fig.2]

Fig.2
Fig.2

4. After you clicked on any options, you can get 2 options to connect your app to firebase and add dependencies to your project. [Fig.3]

Fig.3
Fig.3

5. When You clicked on the button to connect to the firebase from [Fig.3] then you will see the dialogue box like this [Fig.4]

MUST READ: Google Login And Registration For Android Using Firebase Authentication

6. If you already created the project in firebase then you can choose an existing project other you can create a new firebase project.

7. Give the desired name of the project and click on the Connect to Firebase.

Fig.4
Fig.4

8. After you connected with the firebase then you have to add dependencies. For that click on the second option to add dependencies. [Fig.3]

9. When you click on that you get a dialogue box again and you have to click on Accept Changes. [Fig.5]

Fig.5
Fig.5

10. Once you connect Firebase to your Android Project you can see the changes in the gradle file.
As you can see in the [Fig.6] and [Fig.7] Firebase dependencies have been added.

Fig.6
Fig.6
Fig.7
Fig.7

11. To check whether google-services.json has added in your project for that you can go the Project Files then click on the app folder where you can see the google-services.json. 

Fig.8
Fig.8

Now it’s Done! Your Firebase is now connected with your Android Application.

Aditya Singh
Hi, I’m Aditya Singh. The Co-Founder of this blog AndroidHire. I’m Part-Time blogger, and digital marketer. If you want to contribute then you can contact us at contact@androidhire.com

12 COMMENTS

  1. First of all I want to say wonderful blog! I had a quick question that I’d like to ask if you do not mind.
    I was interested to find out how you center yourself and clear your head before writing.
    I’ve had a difficult time clearing my thoughts in getting my thoughts out there.
    I do take pleasure in writing however it just seems like the first
    10 to 15 minutes are wasted just trying to figure out how to begin.
    Any ideas or hints? Thank you!

  2. Dan pilihan yang sangat tepat ialah yang merupakan rumah judi online resmi yang menyandang nama sebagai satu-satunya agen betting online
    terbaik dan terkenal. Segeralah bergabung di agen pertaruhan kami sebab semua yang menjadi khayalan anda untuk
    main Betting Poker Online Terbaik Dan Terpercaya terdapat di disini.

    Jadi sudah tidak bebas Main lafi, Batasan usia untuk dapat bermain di sebuah
    situs judi online resmi Indonesia ialah 22 tahu keatas. Dengan akun tersebut,
    anda akan memiliki username dan password untuk dapat login atau masuk ke
    situs judi poker online tersebut. Blog ini akan selalu menyajikan informasi seputar Agen Situs
    BandarQ, Domino99, Poker Online, Sakong Terlengkap dan Gratis.
    Padahal Fitur Livechat merupakan hal yang paling krusial untuk dipantau… Jika terdapat member yang kecewa terhadap pelayanan costumer service, bukankah hal tersebut akan merusak Image Situs Judi
    itu? Poker Online Indonesia Uang Asli Hp Android – Teknologi semakin memudahkan bagi banyaknya orang dalam bisa memainkan judi
    dengan secara mudah dan tidaklah lagi perlu dalam melakukan banyaknya hal ribet dalam mendapatkan uang didalam
    waktu yang cepat. Jika anda berpikir bahwa anda jauh lebih suka adanya dalam memainkan judi poker secara langsung dalam mempergunakan computer, maka dimana
    pikirkanlah lagi. Website kami telah di dukung oleh Sistem Teknologi Terbaru yang setingkat dengan dewa poker online serta memiliki server yang berkecepatan tinggi, yang akan membuat permainan anda menjadi
    lebih nyaman dan menarik untuk di mainkan bersama teman-teman maupun saingan anda.
    Abdi telah menghadirkan server beserta sistem yang canggih oleh karena
    itu mampu menyita koneksi tali internet secara sangat indah.
    Jadi mampu dipastikan anda akan bermain judi poker online itu tanpa memilikinya gangguan yang berarti diantaranya lost conection atau korespondensi yang
    putus-putus. Ya benar bila anda gabung dengan agen yang pas nanti dapat mencapai yang namanya chip
    poker gratis yang dapat dipakai untuk bermain serta menempatkan taruhan. Apalagi
    jika nantinya anda mengalami kendala apapun ketika Daftar Poker, Bermain Online
    Poker, Judi Domino, judi qiu qiu, judi qq, judi capsa, judi ceme Dan Sebagainya nanti.
    Tindakan tersebut berimbas sulitnya kalian untuk mengakses Situs QQdomino saat ingin bermain.

  3. After going over a number of the blog posts on your blog, I seriously
    like your technique of blogging. I book marked it
    to my bookmark site list and will be checking back soon. Please check out my web
    site as well and tell me your opinion.

  4. Open IIS 6.0 Manager, proper click and choose the properties of Default SMTP Virtual
    Server. Within the left navigation pane, click Account, click My Account and in the Account Information area, click on Settings
    for SMTP entry. Microsoft Graph APIs expose Rest APIs and shopper
    libraries to access information on various Microsoft
    365 providers, including Office 365. Also, Microsoft
    offers common availability of its Intune app protection Graph APIs,
    which is part of Microsoft Graph. Legal document administration software program gives an built-in organizational system
    on your paperwork. Simply put, it’s a feature-packed advertising software that you
    simply should have. Now we have the solutions though.
    Yes , ensure the distribution group have following attributes , then your Distribution group will sync to Office 365 with out
    any points, Allow us to see about these attributes and the way to change the Distribution group.
    So what are the attributes we need to search for ? https://earthsavingnetworks.org/

  5. Open IIS 6.0 Manager, proper click and choose the properties of Default SMTP Virtual
    Server. Within the left navigation pane, click Account, click My Account and in the Account Information area, click on Settings
    for SMTP entry. Microsoft Graph APIs expose Rest APIs and shopper libraries to access information on various Microsoft 365 providers, including Office 365.
    Also, Microsoft offers common availability of its Intune app protection Graph APIs, which is part
    of Microsoft Graph. Legal document administration software program gives an built-in organizational system on your paperwork.
    Simply put, it’s a feature-packed advertising software that you simply should have.
    Now we have the solutions though. Yes , ensure the
    distribution group have following attributes , then your Distribution group will sync
    to Office 365 with out any points, Allow us to see about these attributes and the way to change the Distribution group.
    So what are the attributes we need to search for ? https://earthsavingnetworks.org/

  6. Let me guess: $15/month Netflix, $100/month cell phones, $200/month Cable
    and internet, plus $5-600 payments on credit cards because when you
    want something, why should you have to save up to buy it, right?
    It’s called living within your means, most people living p2p don’t . https://desterium.com/

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

What IP ratings really mean? Best Guide on IP Ratings

It's 2019 and most of the phones are water resistant, but few phones in the markets are waterproof also. Now.. if a manufacturer says...

How to Force Quit in Mac Shortcut

If your program or finder got stuck somewhere then there is an option to Force Quit. A shortcut is really helpful in Mac if you want...

Samsung Galaxy Note 9 will cost the same as Note 8

Samsung Galaxy Note 9 is the most sought flagship after the release of Samsung Galaxy S9 and S9 Plus. The price of the new...

BookMyShow Introduces Pay Now Feature

We all know that if you are in a big city and out of ideas what to do on a Friday or Saturday evening,...