You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apns.gateway_server.send_notification_multiple(frame)
File "/home/gaoenbo/py27/local/lib/python2.7/site-packages/apns.py", line 559, in send_notification_multiple
self._sent_notifications += frame.get_notifications(self)
AttributeError: 'GatewayConnection' object has no attribute '_sent_notifications'
# Send multiple notifications in a single transmission
frame = Frame()
identifier = 1
expiry = time.time()+3600
priority = 10
frame.add_item('b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b87', payload, identifier, expiry, priority)
apns.gateway_server.send_notification_multiple(frame)
The text was updated successfully, but these errors were encountered:
This is due to the latest release not being available on pypi, perhaps install from github (until #163 is resolved) the issue has been resolved here 1842c40
If you want to use enhance mode, please refer to document and specify enhanced=True,
apns_enhanced = APNs(use_sandbox=True, cert_file='apns.pem', enhanced=True)
python 2.7.3
The text was updated successfully, but these errors were encountered: