djacobs / PyAPNs

Python library for interacting with the Apple Push Notification service (APNs)
http://pypi.python.org/pypi/apns/
MIT License
1.22k stars 376 forks source link

Don't try and resend messages with invalid token errors #93

Closed jhorman closed 9 years ago

jhorman commented 9 years ago

An invalid token (status=8) isn't going to ever work.

https://github.com/djacobs/PyAPNs/blob/master/apns.py#L561

jhorman commented 9 years ago

Actually seems like errors 2-8 would never work, and shouldn't be re-submitted.

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW4

jhorman commented 9 years ago

Sorry, my bad. Trying to work my way through this code. You will skip the offending message.