Android Development

Firebase

Firebase is a backend platform for building Web, Android and IOS applications. It offers real time database, different APIs, multiple authentication types and hosting platform. This is an introductory tutorial, which covers the basics of the Firebase platform and explains how to deal with its various components and sub-components. 

Firebase Features 

  • Real-time Database − Firebase supports JSON data and all users connected to it receive live updates after every change. 
  • Authentication − We can use anonymous, password or different social authentications. 
  • Hosting − The applications can be deployed over secured connection to Firebase servers. 

Firebase Limitations 

Firebase free plan is limited to 50 Connections and 100 MB of storage. 

  1. In the first step, we have to go to the firebase console by using the following link https://firebase.google.com/ 
  1. Now, we first have to create a Firebase project. Firebase project will go through and describe what it is. This allows us to add an app to that project can have many projects inside of Firebase. 
  1. Now, we have to give a name and id to the project, enable Google Analytics for the project, set an analytics location, and accept all the terms and conditions. Firebase console automatically creates a unique id for the project. 
  1. In the next step, we have to choose the platform to add Firebase to our application. The platform can be Android, iOS, Web, and Unity. 
  1. In the next step, we have to mention the package name, and the package name is the mandatory and important thing. The package name should be matched with our Android applications package name. We can find the package name of our application in any of the Java class or Manifest file. 
  1. In the next step, we will give a nickname to our application. It is an optional field. There is another optional field for SHA-1, which is required to do for certain feature. We can find the SHA-1 by hitting on the signing report. 
  1. It is one of the most important steps. In this step, we have to download the google-services.json file. This file is provided by Firebase for us to put it inside our application folder in our application. This is a necessary file which is needed by our application to connect with Firebase. 
  1. In the next step, we will add the Firebase SDK. This has been done inside the Android Studio. We have to modify the build. Gradle files once in your project with the following lines of code. 
  1. In the next step, we will add the Firebase SDK. This has been done inside the Android Studio. We have to modify the build. Gradle files once in your project with the following lines of code. 

MySQL Databases (Prev Lesson)
(Next Lesson) Module 3- Advanced Android
Back to Android Development

No Comments

Give a comment