Pr0Ger / PyAPNs2

Python library for interacting with the Apple Push Notification service (APNs) via HTTP/2 protocol
MIT License
349 stars 179 forks source link

Set delayed priority automatically #89

Closed JanChec closed 4 years ago

JanChec commented 5 years ago

It may be important: https://onesignal.com/blog/ios-13-introduces-4-breaking-changes-to-notifications/#apns-priority-must-be-set-to-5-for-background-notifications

JanChec commented 5 years ago

BTW it would be great if raw error codes would be in some Enum (the list in exception_class_for_reason). In batch sending we have to take care of such errors ourselves and on the first look it's not clear where this 'DeviceTokenNotForTopic' is coming from and what are other options. Also the 'Success' string should be a class- or module-wide constant.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.