Getting started with Firebase for Android

Getting started with Firebase for Android

To add Firebase to your app you'll need a Firebase project and a Firebase configuration file for your app. When prompted, enter your app's ...

To add Firebase to your app you'll need a Firebase project and a Firebase configuration file for your app. When prompted, enter your app's . In my previous post, Firebase as a Backend, I briefly explained the features of Firebase and what benefits you can have if you use Firebase as your service base. Here, I will explain to you what are the initial steps you should take to start using Firebase for your applications.

Video Tutorial

Steps

  1. Go to https://console.firebase.google.com
  2. Add Project (you could also import already existing Google Console Project). Creating project from Firebase console will also create Google Console Project automatically, so do keep in mind the limit of creating google console projects.   
  3. Out of these 3 options, you could choose any of them. For this post, I am going to choose, Add Firebase to your Android App.**
  4. Keep ready your package name, SHA1 is not mandatory.
  5. After you are done with Registering app you need to download google-services.json config file. This config file you need to put in the app folder of your Android application.
  6. The last step for setting up and linking up Firebase with your Android app would be to put the following lines in your Android project.

Add following line in dependencies of app module

compile 'com.google.firebase:firebase-core:16.0.0'

Add following code at the last of build.gradle for app module

apply plugin : 'com.google.gms.google-services'

Add following code to dependencies of root-level build.gradle

classpath 'com.google.gms:google-services:4.0.1'

Add following code to allprojects section in root-level build.gradle

repositories {
    maven {
       url "https://maven.google.com"
    }
}

These above steps will now link your Firebase Project with Android project. If something does not work, try reinstalling the app. Next question which comes to mind is How to use Database, Storage, etc. in Android Application. For that, I have written separate posts on Database and Storage The following table shows which dependency you should add in order to use respective component.

Feel free to ask anything on Firebase. Do write in comments section below if you are already using Firebase and finding some issues.

mobile-apps android

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How To Succeed In Mobile App Wireframe Design?

This article covers everything about mobile app wireframe design: what to do and what not, tools used in designing a mobile or web app wireframe, and more.

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.

Best Mobile App Development Company | Android and iOS Apps

iPrism Tech is a one of the best and offshore mobile app development company in India, Saudi Arabia and USA. We are a major providers of android, iphone and ipad mobile app development services at economical prices.

Top 25 Flutter Mobile App Templates in 2020

Flutter has been booming worldwide from the past few years. While there are many popular mobile app development technologies out there, Flutter has managed to leave its mark in the mobile application development world. In this article, we’ve curated the best Flutter app templates available on the market as of July 2020.

Android App Development Company

Skenix Infotech stands as a top Android App Development Company in India & USA that deliver android apps by our highly skilled android application developers.