Skip to content

Send message to multiple devices #196

Description

@KoblStone

I want to send notifications to specific users using tokens. firebase-admin can't send multiple tokens so I'm using:

for obj in queryset:
            token = obj.app_token
            message = messaging.Message(android=android_config, data=data, token=token)
            try:
                messaging.send(message=message, dry_run=False, app=default_app)
            except Exception as ex:
                print('Error %s' % ex)

But it seems that "FCM" is blocked due to the fact that I send a lot of requests per second. Because after that I can not get a notification for a while.
Can this be solved?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions