jazzband / django-push-notifications

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

Bulk notification push not returning errors with APNSDevice #620

Open brianedelman opened 3 years ago

brianedelman commented 3 years ago

When pushing to a set of APNSDevices like device_list.send_message(msg) errors are not returned the same way as if I did a specific APNSDevice device.send_message(msg).

The specific error I was having is that I did not add an APNS_TOPIC to my settings. With a sandbox pem key working locally, this push works fine with no APNS_TOPIC. Maybe this is a separate bug to file or maybe that's intended behavior, but either way was not obvious to me mostly because I was using the bulk notification push and not getting any feedback.

When I ran a single device push the error received was that I was missing the topic (with a production pem key and sandbox=False).

Ultimately resolved my problem of not being able to send push notifications by adding the topic, but seems like the feedback loop for bulk send is missing.