Hunt
Hunt

Reputation: 8435

Limit of Bulk Firebase Cloud Messaging

We are trying to sending promotional push messages to 8k different devices. We are getting success in response to the push notification URL https://fcm.googleapis.com/fcm/send

But only some of the users are getting this notification and not all. So is there any limitation in Firebase Cloud Messaging to send bulk push as i tried to find on Firebase documentation, but it is not written anywhere.

I tried to get the exact limit suggested by Google, but could not locate to a specific page where in Google has mentioned the limit.

However I have found one link of quora send more than 1000 push messages

Upvotes: 2

Views: 9512

Answers (3)

maheshsgr
maheshsgr

Reputation: 2482

You can only send it to 500 users in one go. Better implement batching at your end.

https://firebase.google.com/docs/reference/admin/java/reference/com/google/firebase/messaging/MulticastMessage

Upvotes: 1

AL.
AL.

Reputation: 37798

@NeriaNachum's answer is referring to sending messages to multiple recipients limit when using the registration_ids parameter. From the FCM docs (which I think is what you were looking for):

This parameter specifies the recipient of a multicast message, a message sent to more than one registration token.

The value should be an array of registration tokens to which to send the multicast message. The array must contain at least 1 and at most 1000 registration tokens. To send a message to a single device, use the to parameter.

Multicast messages are only allowed using the HTTP JSON format.

However, if you use Topics Messaging instead, there is no limit. Just make sure that each of the user you intend to send a message to is properly subscribed. If you have your own App Server, you can subscribe multiple tokens using the Instance ID API (see my answer here).

Upvotes: 2

Neria Nachum
Neria Nachum

Reputation: 1529

According to this answer, the FCM limitations are similar to GCM.

From the GCM documentation:

...It must contain at least 1 and at most 1000 registration tokens.

So you're presumably able to send each message to 1000 devices. Since you're not limited in number of messages, you can send the same message 8 times, to 8 different lists.

Upvotes: 3

Related Questions