Closed lapinvert closed 5 years ago
I just noticed my notifications were not sent anymore.
It used to work well and I didn't change anything to the code, but all the sudden, nothing. I looked at the log and saw many rows of GatewayConnection APNS connection closed.
GatewayConnection APNS connection closed
My code is :
def response_listener(error_response): print("error : ",error_response['status']) apns = APNs(use_sandbox=False, cert_file="path/to/cert_file", enhanced=True) apns.gateway_server.register_response_listener(response_listener) payload = Payload(content_available=True) for user_device in user_devices: apns.gateway_server.send_notification(user_device.token, payload, identifier=user_device.id)
Do you have any suggestions ?
I have the exact same issue.
I just noticed my notifications were not sent anymore.
It used to work well and I didn't change anything to the code, but all the sudden, nothing. I looked at the log and saw many rows of
GatewayConnection APNS connection closed
.My code is :
Do you have any suggestions ?