FireBase Push Mass messages use v1.

244 views
Skip to first unread message

Denis Nagorny

unread,
Jun 14, 2024, 2:10:21 PMJun 14
to Firebase Google Group
I am moving application from old FCM functionality to new V1 according https://firebase.google.com/docs/cloud-messaging/migrate-v1?hl=en

However in the old functionality has had the ability to push mass messages by single request.

Do we have ability to do it use new V1?

Joe Spiro

unread,
Jun 21, 2024, 2:04:36 PMJun 21
to Firebase Google Group
Messages can be sent to many receivers using Topics but there is no ability to send to multiple registration tokens or users in a single invocation.

André Rodrigues

unread,
Jun 21, 2024, 4:22:48 PMJun 21
to Firebase Google Group
Hi Joe.

When using topics to send messages with API v1, is it possible to add more than 1000 tokens to a topic? and if possible, is it possible to send a message to a topic with more than 1000 tokens?

Joe Spiro

unread,
Jun 24, 2024, 11:06:36 AMJun 24
to Firebase Google Group
In short: Yes

For context as mentioned in the Topic Messaging docs for iOS and Android:

"
Topic messaging supports unlimited subscriptions for each topic. However, FCM enforces limits in these areas:
  • One app instance can be subscribed to no more than 2000 topics.
  • If you are using batch import to subscribe app instances, each request is limited to 1000 app instances.
  • The frequency of new subscriptions is rate-limited per project. If you send too many subscription requests in a short period of time, FCM servers will respond with a 429 RESOURCE_EXHAUSTED ("quota exceeded") response. Retry with exponential backoff.

André Rodrigues

unread,
Jun 24, 2024, 3:46:38 PMJun 24
to Firebase Google Group
I understood. Last question, where can I see the limit quota that can trigger 429 RESOURCE_EXHAUSTED?

Joe Spiro

unread,
Jun 25, 2024, 11:09:58 AMJun 25
to Firebase Google Group
According to About FCM messages ::Topic message limit, it is 3000 QPS.
Reply all
Reply to author
Forward
0 new messages