Han
Han

Reputation: 627

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

Upvotes: 1

Views: 2067

Answers (2)

user6717171
user6717171

Reputation:

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

Upvotes: 0

Eran
Eran

Reputation: 393801

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.

Upvotes: 1

Related Questions