PyAPNs2
PyAPNs2 copied to clipboard
Feature[alert]: add interruption-level support in the aps payload
Based on apple docs
https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent/interruptionlevel
GOAL:
Adding interruption-level key nested in aps
Proposal Behavior:
- Default value for
interruption_levelis None to not impact in current alert behavior. - There is a validation in
PayloadAlertclass to restrictinterruption_levelargument only the values defined in Apple docs using bytypping.Literaland thesetterdecorator for the mentioned argument.
Extra NOTES:
This effort is required to support other libraries such as django push notifications issue:-> https://github.com/jazzband/django-push-notifications/issues/708
Open issue related -> https://github.com/Pr0Ger/PyAPNs2/issues/158