Perfect-Notifications icon indicating copy to clipboard operation
Perfect-Notifications copied to clipboard

Adopt iOS 13 APNS changes

Open nick3389 opened this issue 6 years ago • 1 comments

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!

nick3389 avatar Oct 03 '19 12:10 nick3389

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.

christophhagen avatar Jun 01 '20 20:06 christophhagen