Firebase Cloud Messaging for Android Development

1. What is Firebase Cloud Messaging (FCM)?

  • FCM (Firebase Cloud Message) is a new version of GCM (Google Cloud Message).
  • With the help of FCM, easily deliver messages at no cost.
  • It is supported by Android, iOs, and Web platforms.
  • Firebase messaging is a lightweight, serverless messaging solution built on Firebase Cloud Messaging.
  • Send push notifications to all your users anywhere in the whole world using firebase messaging.

2. Android listener service:

  • InstanceIDListenerService is required only to access the FCM token.
  • Manage the device token to send messages to a single device directly.
  • send messages to a device group, subscribe devices to the topic with the server.

3. Additional features of FCM:

  • Topic messaging:
    • Using Topic Messaging users get a notification in common topics.
    • FCM delivers your message to all the devices subscribed to this topic.
    • There is no limit on topic messaging.
    • The single topic has as many subscribers, or users can subscribe across different topics.
  • Firebase Remote Config:
    • You change the appearance and behavior of your app without requiring users to download an app update using Firebase Remote Config, and it is a cloud service.
  • Analytics:
    • Firebase Analytics works with other Firebase features.
    • Thus, the user can take action on everything from click-through rates to app crashes.
  • Easy Implementation:
    • Firebase is quick and easy.
    • APIs packaged into a single SDK, you can solve customer’s problems without wasting time building complex infrastructure using intuitively.
  • Cross-platform support:
    • APIs packaged into single SDKs for iOS, Android, JavaScriptand C++ using Cross-platform support.
    • Expand to different platforms without modifying your infrastructure.

4. Firebase Cloud Messaging / FCM Sender ID:

  • The equivalent of Google Cloud Messaging (GCM) Sender ID. The path of this id is Firebase > Project > Settings > Cloud Messaging tab.

5. What are the benefits of upgrading to Firebase Cloud Messaging SDK?

  • Simpler client development. Users can’t write your own registration or subscription retry logic.
  • An out-of-the-box notification solution.
  • Anyone sends notifications to target specific audiences based on Firebase Analytics insights using Firebase Notifications, and it is a serverless notifications solution with a web console.

6. What’s new with Firebase Cloud Messaging Service (FCM)?

  • New FCM libraries:
    • FCM libraries use manifest merging, so you don’t have to worry about permissions.
    •  It automatically adds any permission, needed to reduce the amount of effort you put in.
  • Simplified registration flow:
    • Using “Registration Token” as an address, FCM delivers the message to the device.
    •  This process is now asynchronous.
    •  On your behalf google library takes token automatically.
    •  So, when you request to ‘get token’, you get a registered token.
    • Send registered token to your servers, and start sending messages.
    •  All these new improvements apply to both Android and iOS SDKs.

7. Key capability:

  • Notification or data messages
  • Versatile targeting
  • Upstream messages

8. Token problem:

  • Where to store the token
  • More than one token per user
  • What happens when the user logs out
  • Keep sending email

9. Notification Payload:


“title”: “Test Notification”,

“body”: “Hello!!! Notification”


  • “icon”: Android & iOS
  • “sound”: only Android
  • “badge”: only iOS
  • “click_action”: Android & iOS

10. Data payload:


“title”: “Test Notification”,

“body”: “Hello!! Notification”,

“user_id”: “GVDHDHJ12653,

“user_avatar”: “user  image”,

“notification_type”: “private_message”


Posted in

Related Posts

In-house vs Outsourcing Mobile App Development

Inhouse Vs. Outsourcing Mobile App Development

In-house vs. outsourcing mobile app development is the most common quandary that businesses face when they plan to build their mobile app. With digital transformation governing the eCommerce industry, businesses are competing to offer their customers seamless experiences with the help of the latest tech innovation. However, building a mobile app is not easy as…
Read More
WhatsApp Telegram Signal

WhatsApp vs Signal vs Telegram: Battle for the best messaging app!

Whatsapp currently is the largest messaging service in the world, with over 2 billion monthly active users. Following that, Telegram accounts for 400 million and Signal stands at a ballpark of approximately 10-20 million monthly active users.
Read More
Medical apps

5 Must-Have Medical Apps for Doctors and other Medical Professionals

There are many high-rated medical apps are listed on the Play Store and App Store, that can help you become a better medical professional.
Read More
developer coding

5 Types of Developers You Need To Know Before You Hire

Welcome to Cmile, in this article, we have categorized the most widely recognized sort of developers you will experience.
Read More

Leave a Comment


We focus on solving the issue via apps. We don’t go with the trends, we analyze the issue and try to develop the apps which can improve your life.


GST is usually filled by our CA’s. On the GST portal, our contact number is registered. Hence, when our CA fills GST online, we receive an OTP for confirmation. This OTP is automatically forwarded to your CA by GOCA App. We are providing a hassle-free way of filling GST.

Shwas App

Shwas App is developed to connect to wireless spirometer manufactured by KlomaCare via Bluetooth.

Girls Invest

Girls Invest is a mobile app-based training to promote healthy relationships, financial literacy and inclusion, encourage the pursuit of career goals, as well as to support girls to manage social and overall health challenges.

Milkman App

Milkman app is an end-to-end solution that empowers you to manage your subscriptions, delivery, and allows you to pay online/cash at ease. From the land of dairy directly to your doorstep, the Milkman app has made it possible by optimizing the platform with technology and a commitment to quality.

Ready to Discuss Your Project?