Skip to main content

Firebase with android: An Overview of Products and Usage


Introduction:

In the evolving landscape of mobile application development, understanding user behaviour, managing user identity, and delivering personalised communication are critical components of a successful digital product. Google provides a suite of powerful tools through Firebase and Google Analytics that help developers build, improve, and grow their applications efficiently. This article explores Google Analytics, Firebase Authentication, Firebase Cloud Messaging (push notifications), and other core Firebase products, along with their practical uses.


Google Analytics

Google Analytics for Firebase is a free app measurement solution that provides insights on app usage and user engagement. Unlike traditional Google Analytics, this version is tightly integrated with Firebase services, making it highly useful for mobile and cross-platform apps.

Key Features:

  • Event tracking: Automatically or manually track user actions like screen views, button taps, purchases, etc.

  • User segmentation: Group users by device, behaviour, or demographics.

  • Audience creation: Build custom user groups for remarketing and personalisation.

  • Integration: Easily integrates with Google Ads, Firebase Remote Config, A/B Testing, and BigQuery.

Usage:

1. Understand which features are most popular, and track app performance across user demographics. 
2. Create targeted marketing campaigns and measure the success of app updates and new features.

https://firebase.google.com/docs/analytics/get-started?platform=android.

Please go through above link for complete integration



Firebase Authentication

Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users in your app.

Supported Authentication Methods:

  • Email and password

  • Phone number

  • Federated identity providers (Google, Facebook, Twitter, GitHub)

  • Anonymous sign-in

Key Features:

  • Secure and scalable auth system.

  • Easy integration with other Firebase services.

  • Built-in support for multi-factor authentication (MFA).

  • User management via Firebase Console or Admin SDK.

Usage:

  • Quickly implement secure sign-in without building your own auth system.

  • Protect sensitive user data behind authentication.

  • Support multiple login providers to increase user acquisition.

  • Use anonymous login for guest users or onboarding experiences.

Authenticate with Firebase on Android Using a Custom Authentication System

https://firebase.google.com/docs/auth/android/custom-auth

Use the above link to learn and integrate the different types of Firebase authentications in Android.


 Firebase Cloud Messaging (FCM)

Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you send notifications and messages to users across Android, iOS, and the web.

Key Features:

  • Notification messages appear in the system tray.

  • Data messages: Handle custom data silently in the background.

  • Topic messaging: Broadcast to multiple users based on subscription.

  • Device and user targeting: Deliver messages to specific devices or user segments.

Usage:

  • Send real-time updates, alerts, and reminders.

  • Engage inactive users with targeted promotions.

  • Trigger notifications based on analytics events (via Firebase In-App Messaging).

  • Drive app retention through personalised push campaigns.

Set up a Firebase Cloud Messaging client app on Android:
https://firebase.google.com/docs/cloud-messaging/android/clien

Use the above link for push notification integration in Android apps.


Cloud Firestore

A real-time, scalable NoSQL cloud database to store and sync data for client- and server-side development.

Use Cases:

  • Chat apps, live feeds, and collaborative tools.

  • Offline support for a seamless user experience.

This quickstart shows you how to set up Cloud Firestore, add data, then view the data you just added in the Firebase console.

https://firebase.google.com/docs/firestore/quickstart#android

Use the above link to integrate Firestore into your project.


Realtime Database

An earlier Firebase database solution ideal for syncing data across clients in real time.

Use Cases:

  • Live status updates, games, and leaderboards.

Connect your App to Firebase

https://firebase.google.com/docs/database/android/start

Use above link to integrate the real-time database to your project


Firebase Hosting

Fast and secure web hosting for static and dynamic content.

Use Cases:

  • Hosting web apps, landing pages, and documentation.

Get started with app hosting.

https://firebase.google.com/docs/app-hosting/get-started

Use the above link to integrate the Firebase hosting into your project.


Firebase Crashlytics

Real-time crash reporting tool.

Use Cases:

  • Identify and fix stability issues.

  • Monitor app performance across devices.

Get started with Firebase Crashlytics

https://firebase.google.com/docs/crashlytics/get-started?platform=android

Use the above link to integrate Firebase Crashlytics into your project.


Firebase Remote Config

Update your app's behaviour and appearance without deploying a new version.

Use Cases:

  • A/B testing UI changes.

  • Roll out features gradually.

Get started with Firebase Remote Config

https://firebase.google.com/docs/remote-config/get-started?platform=android

Use the above link to integrate the Firebase Remote config into your project.


Firebase Performance Monitoring

Track your app's performance to understand where it slows down.

Use Cases:

  • Optimise app loading times and responsiveness.

Get started with Performance Monitoring for Android

https://firebase.google.com/docs/perf-mon/get-started-android

Use the above link to integrate the Firebase Performance monitor into your project.


Firebase Test Lab

Cloud-based infrastructure for testing Android and iOS apps.

Use Cases:

  • Run tests on a wide range of physical and virtual devices.

https://firebase.google.com/docs/ab-testing

The above link is to integrate the Firebase AB-Testing into your project.


Integration and Ecosystem

One of Firebase’s greatest strengths is its tight integration:

  • Google Analytics works seamlessly with Remote Config, Crashlytics, and A/B Testing.

  • Firebase Authentication works with Firestore, FCM, and Cloud Functions.

  • Everything can be monitored, tested, and scaled using Google Cloud Platform services.

Pricing plan:

https://firebase.google.com/pricing


Conclusion

Firebase and Google Analytics together offer a full suite of tools that streamline development, enhance user engagement, and improve app performance. Whether you're building a mobile app or a web-based service, these tools can help you make data-driven decisions, keep users engaged, and scale confidently. Developers and product teams alike can benefit from the simplicity, scalability, and power of this integrated ecosystem.

References:

https://firebase.google.com/

https://developer.android.com/courses/android-basics-compose-firebase/course


Git Links:

https://github.com/firebase/quickstart-android




Comments

Popular posts from this blog

Google re-branded the support Android libraries to AndroidX

It is important to note, you cannot mix AppCompat and Jetpack in the same project. You must convert everything to use Jetpack if you want to upgrade. The support library artifacts are being deprecated and all future development is going into AndroidX , so there's no avoiding this migration. Alan Viverette sums this up nicely: “There won’t be a 29.0.0, so Android Q APIs will only be in AndroidX” The stable release of 28.0.0 will be the final feature release packaged as android.support . All subsequent feature releases will only be made available as androidx-packaged artifacts. Below tips will give you a clearer transition path. The current version of AppCompat (v28.x) is exactly the same as AndroidX (v1.x). In fact, the AppCompat libraries are machine generated by changing maven coordinates and package names of the AndroidX codebase. For example, android.support.v7.app.AppCompatActivity is now androidx.appcompat.app.AppCompatActivity For a complete listi...

Android Studio Release Updates

JetBrains's  Android Studio’s 10 year anniversary      I remember the major change which has taken place since I started learning android is Android Studio migration from Eclipse. Android Studio’s 10 year anniversary. Watch official youtube : Android Studio’s 10th birthday: our favorite moments!      In December 2014 , Google launched Android Studio, Google's official Integrated Development Environment (IDE) based on IntelliJ and it discontinued the Android Developer Tools (ADT) plugin for Eclipse, which means it’s time to leave eclipse behind.        Fortunately, we had simple solution to migrate, Android Studio offered a better experience for Android developers and its migration functionality does most of the work for you.      Open Android Studio and click on the option:  Import project (Eclipse ADT, Gradle, etc) Before Android studio      1. users had to go download a JDK, then download Eclipse...

Android Pi migration(28 API support)

I am here to give some inputs on android PI migration. .  Apps must target at least API level 28 to ensure it is built on the latest APIs optimized for security and performance . From August 2019, new apps must target at least Android 9.0 (API level 28) . The objective here is to make sure that your existing app works as-is on Android 9. Because some platform changes might affect the way your app behaves, some adjustments might be necessary, but you do not need to use new APIs or change your targetSdkVersion. Android Service Problem On Oreo, startService() will throw IllegalStateException. This can be fixed by changing it to startForegroundService(). but it also stops the service immediately if you don’t bind to the Notification with Service.startForeground() within 5 seconds. For other background service we decided to use the WorkManager . Implementation: Since we have minSdkVersion 19, We migrated to workmanger for scheduled tasks and we still use JobInten...