Is GCM (now FCM) free for any limit?

50,276

Solution 1

In addition to the answer from AL.
From the Pricing page Faqs:

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, App Indexing, Authentication, Dynamic Links, Cloud Messaging, Notifications, Invites, Crash Reporting, &, Remote Config. You can use an unlimited amount of these in all plans, including our free Spark Plan.

So, it's free. The limit is not mentioned anywhere in the docs, however there's a limit on the Firebase realtime database, as mentioned in the FAQs:

Firebase imposes hard limits on the number of connections to your app's database at the same time. These limits are in place to protect both Firebase and our users from abuse.

The free plan limit is 100, and cannot be raised. The Flame and Blaze Plans have an initial limit of 10,000 simultaneous database connections. This is to prevent abuse and can be raised by contacting Firebase support with 24 hours notice.

This limit isn't the same as the total number of users of your app, because your users don't all connect at once. We encourage you to monitor your peak simultaneous database connections and upgrade if needed.

We're working hard to remove the initial 10,000 simultaneous connection cap on the Flame and Blaze plans.

So if you are using the Firebase Database to save your User's data and want to send a lot of Push Notifications to your user's devices using the FCM registration token stored in the Firebase Database, you might hit the limit in the free Spark plan, however it's really tough to hit the 10k limit.

Solution 2

From the Firebase Cloud Messaging Docs:

Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost.

Solution 3

You can refer to the official Firebase Pricings page. From there you will be able to see the types of projects that are available: SPARK, FLAME, BLAZE, to which all of them have FCM (along with Analytics, App Indexing, Authentication, Dynamic Links, Invites, Notifications, Crash Reporting & Remote Config) included for free.

enter image description here

Solution 4

As per the current documentation, the Cloud Messaging Service (FCM) is free with no limits.

enter image description here

Solution 5

Firebase Cloud Messaging (FCM) Connection Server (CCS) sits between the device and the app server. The following limits apply

  1. From the documentation here, it seems FCM does impose a limit of 1000 connections in parallel.

For each sender ID, FCM allows 1000 connections in parallel.

Sender Id is a unique numerical value created when you create your Firebase project, available in the Cloud Messaging tab of the Firebase console Settings pane. The sender ID is used to identify each app server that can send messages to the client app.

Note: Please correct me if this limit is not about the max connections from an app server to CCS


  1. Secondly, You should also read about Flow Control if you are using the XMPP connection server protocol (which has to be used if using device-to-cloud messaging). There should not be more than 100 unacknowledged messages towards CCS at any single point of time.

If the pending message count reaches 100, the app server should stop sending new messages and wait for CCS to acknowledge some of the existing pending messages

Share:
50,276
Harikrishnan CV
Author by

Harikrishnan CV

Updated on April 21, 2021

Comments

  • Harikrishnan CV
    Harikrishnan CV about 3 years

    I would like to know if Firebase Cloud Messaging is free or not for unlimited users?

  • user2924714
    user2924714 over 7 years
    The question is if there is any limit on number of FCM notifications we send in a second/ millisecond? If I use FCM for chat application, to send each of my message, it might be lots of push notifications at a small amount of time
  • 0xC0DED00D
    0xC0DED00D over 7 years
    @user2924714 There isn't any limit of per second notification, as I have used it to send thousands of notification each second. However FCM is not reliable and should not be used for Chat notifications or any notification which have to reach instantly. The notification may be delayed or may not reach the device ever.
  • user2924714
    user2924714 over 7 years
    Thanks.Could you please provide any reference that FCM is not reliable?I saw the only case that the user won't get the message is if he's offline and his queue of offline messages becomes full. firebase.google.com/docs/cloud-messaging/concept-options: "There is a limit of 100 messages that can be stored without collapsing. If the limit is reached, all stored messages are discarded. When the device is back online, it receives a special message indicating that the limit was reached. The app can then handle the situation properly, typically by requesting a full sync from the app server."
  • Ahmad Chishti
    Ahmad Chishti over 6 years
    So, is my conclusion correct that there is a limit on simultaneous connections but you can send unlimited messages from Firebase Cloud Messaging?
  • kemdo
    kemdo over 6 years
    thanks. It say free but can my project used over 10000 notify perday? ( for both android and ios)?
  • AL.
    AL. over 6 years
    @kemdo There is no limit to the number of notifications you could send.
  • tom10271
    tom10271 about 6 years
    From the documentation here, it seems FCM does imposes a limit of 1000 connections in parallel. <= Is it outdated?
  • Shebin Koshy
    Shebin Koshy almost 6 years
    I'm not using Realtime DB. And also i'm not maintaining device tokens and able to send push notification to all users from firebase console by choosing bundle of iOS app. So did we face any limit in this case for free plan? @noob
  • 0xC0DED00D
    0xC0DED00D almost 6 years
    @ShebinKoshy Nope, there's no limit for the usage of FCM alone. Although there's some restrictions for preventing abuse (not cleared what and how) as mentioned by the Firebase team in a GCP podcast. But in general case there should not be any issue.
  • Shebin Koshy
    Shebin Koshy almost 6 years
    @noob Thank you so much dear :)