Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature[alert]: add interruption-level support in the aps payload #159

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GonzaloAvilez
Copy link

Based on apple docs

https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent/interruptionlevel
image

GOAL:
Adding interruption-level key nested in aps

Proposal Behavior:

  1. Default value for interruption_level is None to not impact in current alert behavior.
  2. There is a validation in PayloadAlert class to restrict interruption_level argument only the values defined in Apple docs using by typping.Literal and the setter decorator for the mentioned argument.

Extra NOTES:

This effort is required to support other libraries such as django push notifications issue:->
jazzband/django-push-notifications#708

Gonzalo Avilez and others added 2 commits September 4, 2024 12:49
@GonzaloAvilez
Copy link
Author

Open issue related -> #158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant