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

Adopt iOS 13 APNS changes #14

Open
nick3389 opened this issue Oct 3, 2019 · 1 comment
Open

Adopt iOS 13 APNS changes #14

nick3389 opened this issue Oct 3, 2019 · 1 comment

Comments

@nick3389
Copy link

nick3389 commented Oct 3, 2019

Hello,

Will there be a release which adopts the changes that Apple introduced in APNS for iOS 13+ and watch OS 6+?? I talk about the apns-push-type and apns-priority requirements.

Thanx!

@christophhagen
Copy link
Contributor

I've created a pull request #17 to resolve this issue. It solves my problem of sending background notifications without any alert keys.

My forked repository contains a release 4.1.0 with these changes, if you need to urgently support for this, consider temporarily switching to:

.package(url: "https://github.com/christophhagen/Perfect-Notifications.git", from: "4.0.0")

The initialization of NotificationPusher receives an additional argument pushType: which specifies the type of the notification, e.g.:

NotificationPusher(apnsTopic: topic, priority: .background, pushType: .background)

Please consider the additional requirements detailed in Sending Notification Requests to APNs.

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

No branches or pull requests

2 participants