Skip to content

Question: Increase Badge by 1 for thousands of users #164

@derwaldgeist

Description

@derwaldgeist

First off, thanks for this great package!

I have a question about best practices for sending out a notification to thousands or even hundreds of thousands of users (e.g. all users of an app) and setting the badge number accordingly. I've seen one can send all registration IDs in a batch, which is cool. But I haven't seen a way to send the correct badge numbers for these recipients at the same time. The badge seems to apply to all registrationIds at the same time.

Does that mean that I have to actually call send() hundreds of thousands times, and how do the target services (GCM and APN) cope with this immense flood of data? Or is there a mechanism that would just tell the device to increase the badge number by 1? What is the best practice here?

And in the case that you actually have to call sends() so many times, is it ok to do this in one big burst, or should this be done in (queued) chunks with some delay in between the chunks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions