Android Push Notification (Gcm), Is There Any Daily Limit

Android Push Notification (GCM), is there any Daily Limit?


Update: GCM is deprecated, use FCM

After Google replaced C2DM with GCM, they took off all limits.

SOURCE: http://developer.android.com/google/gcm/c2dm.html#history

Prior to GCM (when it was still called C2DM): https://developers.google.com/android/c2dm/#limitations)

The only limits you run into the GCM documentation is this: http://developer.android.com/google/gcm/adv.html#lifetime

Quote from the above link:

Note: There is a limit on how many messages can be stored without
collapsing. That limit is currently 100. If the limit is reached, all
stored messages are discarded. Then when the device is back online, it
receives a special message indicating that the limit was reached. The
application can then handle the situation properly, typically by
requesting a full sync.

I am not sure if this is relevant to your question though.

What is the daily maximum limit to send GCM messages to android devices?

Maximum number of messages a device can "collapse": 100. This means that if you send 100 messages without the device handling any of them, the 101th will not be received. This can happen if you send a lot of messages while the devices is shut down.

Maximum number of recipients one message can have for one request: 1000. This means that if you want to send a lot of messages, you must do so in batches of 1000

if i have 100,000 users in my app and i need to send push notifications to all then what is the procedure?

Since there is a limit of 1000 recipients per request, you will have to make 100 requests with the 100,000 registration ids spread over them.

A loop with 100 iterations can do the job, or process your users in batches of 1000.

It is the same for Firebase Cloud Messaging.

is there any daily limit based on the size for Android Push Notification (GCM),


Yes, There is limit for (GCM). That limit is currently 100. for more details see the link heregoogle push notification(GCM)

FCM Limitation for Android Push Notification?

As far as usage limitation goes, FCM is pretty much the same with GCM. See my answer here and here.

When you migrate your Google Project to Firebase, it would still retain the Sender ID. Where it is used depends entirely if it's compatible to it.

Google cloud messaging Limit


  1. Yes you can do that. While using HTTP you may have a batch size of 1000(recipients).

  2. Yes. Topic messages is PubSub method and if your clients registered to a given topic, you can sent a push notification to all of them with just one request.

  3. No limitation. Once there was a 1 million subscriber limit per app on Topic Messaging, which doesn't exist anymore.

  4. You confused the third limit:

    • The first one (HTTP) is about a single client, not all of them. So if you send more than 100 messages to a single client while he is offline, when he gets back online again, none of them will be deliver.
    • The second one (XMPP) is about all of the queue and it happens in the server side. It means you have to send no messages to GCM if there exists more than 100 unACKed messages there.

    So you have no problem considering offline users, GCM will handle to deliver message to all of them, when they come back online.

  5. No.

  6. I explained it in 4.

  7. I don't remember any more.

Is GCM (now FCM) free for any limit?

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.

Max number of devices can GCM send push notifications to

Based on the Official Google Documentation, specifies a list of devices (bases on registration tokens or IDs) receiving a multicast message. It must contain atleast 1 and at most 1000 registration tokens.
For multicast messaging, not for single recipients. Multicast messages (sending to more than 1 registration tokens) are allowed using HTTP JSON format only.

You may check the Official Google documentation here: https://developers.google.com/cloud-messaging/http-server-ref



Related Topics



Leave a reply



Submit