jazzband / django-push-notifications

Send push notifications to mobile devices through GCM or APNS in Django.
MIT License
2.23k stars 605 forks source link

ValueError: messages must not contain more than 500 elements #730

Open Pablo849 opened 2 weeks ago

Pablo849 commented 2 weeks ago

I have 556 FCM devices in my system. When I try to send a bulk message to all devices, I get "ValueError: messages must not contain more than 500 elements". I found a settings parameter in push_notifications/conf/app.py -> MAX_RECIPIENTS. But is not clear in docs how to define this parameter. How can I set it correctly? I use firebase_admin.initialize_app(credentials=cred) with firebase credentials JSON file.