Notifications send just fine through the Django console test functionality but when trying to send via the send_message function, notifications never come through.
Using this code to send and the same APNS device id for both tests:
devices = APNSDevice.objects.filter(user=user)
for device in devices:
try:
device.send_message(message)
except APNSServerError as e:
logger.info(f"Error in sending message: {e}")
Notifications send just fine through the Django console test functionality but when trying to send via the send_message function, notifications never come through.
Using this code to send and the same APNS device id for both tests:
devices = APNSDevice.objects.filter(user=user) for device in devices: try: device.send_message(message) except APNSServerError as e: logger.info(f"Error in sending message: {e}")
Receiving these logs when trying to send: