olucurious / PyFCM

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
http://olucurious.github.io/PyFCM/
MIT License
804 stars 205 forks source link

Badge for chunk #278

Closed iremsha closed 2 years ago

iremsha commented 3 years ago

Please tell me if it is possible to somehow make setting badge and sending with chunks. Or need send each notification independently because the badge must be calculated individually for each user


    for chunk in chunks_without_sound_notification:
        result = push_service.notify_multiple_devices(
            registration_ids=chunk,
            message_title=title,
            message_body=body,
            data_message=data,
            sound=False,
            badge=3
        )