Is Firebase Cloud Messaging free?

105,525

Solution 1

Firebase Cloud Messaging is free of charge, just like Google Cloud Messaging was. The Firebase pricing page shows exactly what Firebase features are paid.

Solution 2

Yes, it's free. You can use Analytics for advanced messaging - out of the box.

Which products are paid? Which are free?

Firebase's paid infrastructure products are the Realtime Database, Firebase Storage, Hosting, and Test Lab. We offer a free tier for all of these products except Test Lab.

Firebase also has many free products: Analytics, Notifications, Crash Reporting, Authentication, Remote Config, Dynamic Links, Firebase Invites, and App Indexing. You can use an unlimited amount of these in all plans, including our free Spark Plan.

Solution 3

As of April 10, 2018, Google has deprecated GCM. The GCM server and client APIs are deprecated and will be removed as soon as April 11, 2019. Migrate GCM apps to Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure.

Solution 4

https://firebase.google.com/pricing/

This link should help you understand better. If you are implementing push notifications my suggestion would be that maintain your own database for the generated device tokens instead of using topic messaging.

Two reasons why I avoided topic subscription is :

  1. There is a limit to the number of topics you can subscribe in free plan
  2. Topics are not subscribed immediately

Although the number of active users allowed in parallel connection has a limit but its too much to exceed that easily.

P.S. I use the spark plan by the way

Solution 5

There is no such thing "unlimited" for free. If you will send billions of billions messages a day, you will likely hit the maximum throughput limits and get blocked, or perhaps some sales man will contact you.

Share:
105,525
Kakey
Author by

Kakey

Updated on July 05, 2022

Comments

  • Kakey
    Kakey almost 2 years

    I need to implement push notification feature in my application. Exploring some options.

    Google recently recommends Firebase platform, but this is not completely a free service. So I thought of using GCM again. Will google stop support for GCM in future?

  • conandor
    conandor over 7 years
    Is there a cap or limit for free Firebase Cloud Messaging?
  • Sti
    Sti over 6 years
  • Jaime Montoya
    Jaime Montoya over 6 years
    @conandor No, there is not.
  • Khaled
    Khaled about 6 years
    More than 6 months have passed on your answer, was wondering how is the spark plan holding up with you so far :)? care to share the number of users you have now? @dinesh-shekhawat
  • Dinesh Shekhawat
    Dinesh Shekhawat about 6 years
    The spark plan is working fine for me. As for now there are no users but when I was using FirebaseStorage for another project no problem was faced.
  • Lokesh Pandey
    Lokesh Pandey over 5 years
    @Sti The spark plan will be free till you hit the limits. After that they start charging. And also if you are making any external API calls, you need to get the paid service. Else you'll get errors
  • Sti
    Sti over 5 years
    @Lokesh I didn't say the spark plan was free. My comment was a response to the answer stating that "There is a limit to the number of topics". The link I provided states that "we’re allowing unlimited free topics for your app". I.E "there is no limit". Also, this is about a year ago, so who knows what Google has been doing. Maybe it's super expensive now, like they did with GoogleMaps, which we can't afford to use anymore.
  • Raz Buchnik
    Raz Buchnik over 5 years
    In order to use Firebase push services - should I have Google Cloud Platform account?
  • Raz Buchnik
    Raz Buchnik over 5 years
    where did you get this resource?
  • fatal_error
    fatal_error almost 5 years
    Not sure why this was downvoted; that's correct information. The original question was: "Will google stop support for GCM in future?" And, the answer is yes: GCM API's have been removed already. See developers.google.com/cloud-messaging/android/…