'Limit for Device Group Messaging (FCM)

As per docs, it is stated that - "The maximum number of members allowed for a notification key is 20."

What are 'members' here? Are they the registration tokens?

Device group messaging



Solution 1:[1]

Yes, a notification key is associated with a list of registration tokens, as you can see in the same reference you linked:

Create the notification_key, which identifies the device group by mapping a particular group (typically a user) to all of the group's associated registration tokens. You can create notification keys on the app server or on Android client apps

Therefore the members are devices, which are identified by registration tokens.

Solution 2:[2]

I asked myself the same question.

As I couldn't find any answer I made a Puppeteer script.

By members, it means 20 active registration_ids. After running 20 times my script, it appeared that even if the documentation states The maximum number of members allowed for a notification key is 20, the API limits to 100.

Error is Total registrations will exceed the max allowed limit of 100

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eran
Solution 2 Baptiste Jamin