Add Firebase to Android App (Part 1)
What is Firebase ?
- Firebase is a platform developed by Google for creating mobile and web applications😀
- Google acquired the platform and it is now their flagship offering for app development
- Firebase is Backed by Google and Loved by app development Teams 😃from Startups to Global Enterprises
- Firebase has important products app developers can use to Build, Release & Monitor & Engage through any App Lifetime Journey
- With Firebase Build Products range, we can accelerate app development with fully managed Backend Infrastructure(Realtime Database, Remote Config, Authentication, Cloud Messaging, Hosting, Cloud Storage)
- With Firebase Release & Monitor products range, we can release with confidence and monitor performance & stability(Google Analytics, Performance Monitoring, Test Lab, App Distribution)
- With Firebase Engage products range, we can boost user engagement with rich analytics, A/B testing & messaging campaigns(Dynamic Links, In-App Messaging, Cloud Messaging, Crashlytics)
But, to use all this amazing Services for our App, first we need to add Firebase Service to our App. Let’s do it🤩
Steps to Add Firebase to Android App
- Go to Firebase Console, and Add Project. Give a name to Project (I have use remote config demo for demonstration, you can use any)
2. Add Package name from your AndroidManifest.xml, you can give any Nick Name
3. Download google-services.json to obtain your Firebase Android config file & move your config file into the module (app-level) directory of your app
4. To enable Firebase products in your app, add the google-services plugin to your Gradle files. In your root-level (project-level) Gradle file build.gradle, add rules to include the Google Services Gradle plugin
5. In your module (app-level) Gradle file (usually app/build.gradle), apply the Google Services Gradle plugin
6. Using the Firebase Android BoM, declare the dependencies for the Firebase Products, that you want to use in your app. Declare them in your module (app-level) Gradle file (usually app/build.gradle).
7. Sync your app to ensure that all dependencies have the necessary versions(Wait till creating Project & you are done.)
8. After successful creation of project, you will see the Dashboard as
Thanks for your valuable read to article. Last thing, if you feel it helpful, Please SHARE 📤 & do give CLAPS 👏👏.