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

Support for iOS interruption-level API #708

Open
1 task
Tracked by #708
itayAmza opened this issue Mar 1, 2024 · 1 comment · May be fixed by #711
Open
1 task
Tracked by #708

Support for iOS interruption-level API #708

itayAmza opened this issue Mar 1, 2024 · 1 comment · May be fixed by #711

Comments

@itayAmza
Copy link

itayAmza commented Mar 1, 2024

Hi,
Is there a way to set interruption-level value like time-sensitive for APNSDevice?
Send communication and Time Sensitive notifications for more context if needed

example payload:

{
    "aps" : {
        "alert" : {
            "title" : "Urgent",
            "body" : "Your account requires attention."
        }
        "interruption-level" : "time-sensitive"
    }
}

Tasks

  1. 0 of 1
    apns feature request
@50-Course
Copy link
Member

50-Course commented Mar 11, 2024

hello @itayAmza, at the moment, support for interruption-level on iOS devices
is not currently supported internally. I have also just reviewed the underlying
library that we use for the iOS SDK, PyAPNs2 and it does not support this feature either.

This would make for a new feature request, so I will go ahead and edit the tags appropriately.

50-Course added a commit that referenced this issue Mar 28, 2024
Motivation:

We never know when we might be implementing or extending the
`django-push-notifications` library beyond its current support.

It makes sense to have a module to handle critical moments such as
that raised in #708 (for  `interruption-levels`). This gives control
over newly  implemented interfaces without having to worry about
outdated modules, such as `PyAPNS2`.

This allows us to provide wrapper or extend existing library
functionalities.

Context:

This patch address one side of issue by providing an enumeration module
that can be used to deal with public and underlying APIs.
@50-Course 50-Course linked a pull request Mar 28, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants