Intive Blog

Firebase evolution

Although it was born like the “DropBox” of applications, Firebase has evolved to become a platform that has dramatically improved since Google bought it in 2014 and then powered it even further after taking over the Divshot team.

In the pre Google era, Firebase was focused on storing data of our applications for them to be accessible and easily consumed by users. Now, it is way more than this.

 

How to configure a project in Firebase?

  1. Create a project in the Firebase console. If we already have an existing Google project associated to the mobile app under development, we must click on Import Google Project.
  2. Click on Add Firebase and follow the set up steps. If we will import an existing Google Project, it can be performed automatically and we can only download the configuration file.
  3. When prompted, we have to key in the packet name of the application. It is important to do so since it can only be adjusted when we add an app to our Firebase project.
  4. Finally, we can download a google-services.json file. We can download this file anytime.
  5. If we have not done that yet, we will copy this on the folder of the project module, which is generally named app/

 

How to set up Firebase in our App?

Firstly, we need to add google-services in the build.gradel file at root level of the project:

Afterwards, in the Gradle file (generally the app/build.gradle), we will have to add the line apply plugin at the bottom part of the file to activate the Gradle plugin:

We will also have to add the dependencies of the SDK Firebase we want to use. Ideally, we should start with com.google.firebase:firebase-core, which provides us with the Firebase Analytics feature. You can see this here: list of available libraries.

 

Conclusion

With everything set, we will be ready to use this platform that before had mutated from a cloud-based database into a multiservice platform. It features file hosting, generation of notifications, login authorizations, etc. What Firebase became after being taken over by Google is a far more complex tool when programming. Google allows us to test Firebase for 40 minutes on a development already worked on for us to know further about it and experiment its features. You can do this on this link. Happy coding!

Diego Blajackis

He has been a Software Developer for the company since 2012. He is a member of the Android Team. He is a Systems Analyst, graduated from ESBA in Villa Urquiza. He always walks up & down intive – FDV with a sunny smile on his face.

Add comment