Open Colleoni opened 8 years ago
Hi, I found an issue when sending bulk messages.
In lib/apns.py inside the apns_send_bulk_message function you are cycling over all devices and calling the function _apns_send.
The problem is that _apns_send on line n 123 uses the pop() method to retrieve the notification message:
alert = custom_params.pop('message', '')
and since the message is always stored in the same dictionary, already the second device will receive an empty message.
If you take a look at django-push-notification they simply solved it avoiding the pop method.
Best regards, Luca
@Colleoni Hey, Thanks for reporting the issue. I will have this resolved asap.
Hi, I found an issue when sending bulk messages.
In lib/apns.py inside the apns_send_bulk_message function you are cycling over all devices and calling the function _apns_send.
The problem is that _apns_send on line n 123 uses the pop() method to retrieve the notification message:
alert = custom_params.pop('message', '')
and since the message is always stored in the same dictionary, already the second device will receive an empty message.
If you take a look at django-push-notification they simply solved it avoiding the pop method.
Best regards, Luca