0
votes

According to Apple's APNs docs, as of iOS 13 clients of the http api must send header fields for apns-push-type and apns-priority or the requests will fail.

Sure enough, our users who've udpated to the iOS 13 beta aren't getting silent push notifications that we send through Pushwoosh

In my code level (in my Xcode)in did all changes whichever is required.

Now only thing is pending that 2 header has to add in payload. (Here is the article)

  1. First attribute/parameter to the headers for APNS Payloads: apns-push-type

    (Key: apns-push-type and Value: alert or background)

  2. Second attribute/parameter to the headers for APNS Payloads: apns-priority

    (Key: apns-push-type and Value: alert or background)

Where these 2 header fields with values has to be add ?

Either from backend database or PushWhoosh ?

Or my code level?

Can anyone help for this?

Because it says that,

“These headers required when delivering notifications to devices running iOS 13”. Furthermore “if the header is missing on required systems, APNs may delay the delivery of the notification or drop it altogether.”

For more information refer following articles,

iOS 13 and Xcode 11 Changes That Affect Push Notifications

Sending Notification Requests to APNs

1
Typo in your question -> the Key/Value for apns-priority should be apns-priority and 5, according to the WWDC documentation.cujo30227

1 Answers

0
votes

Here is information given by Pushwoosh Team,

First of all, it should be emphasised that we took the necessary actions on our side before the release of the iOS 13 to avoid issues with silent pushes.

Regarding the apns-priority parameter, please note that our sender always includes this parameter for iOS silent pushes by default. So it is not necessary to add it by yourself.

As for the apns-push-type parameter, it was introduced with iOS 13. It is required for pushes to watchOS and is not required(for now) for pushes to iOS. This parameter does not add any "tricky" behaviour for push notifications. This is also described in the Apple article you have provided.

Here is the Screenshot of my email, Sceenshot Of Email

So, there is no need to do the changes you asked for.