I have push notifications set up and working correctly, however, sometimes I experience delays in the delivery on the end device. Is there a way I can set the "priority" key of the push to be 10 so the push is sent immediately? I don't believe I can just put it in the dictionary with the other keys such as "alert" because Apple's docs say it should be separate from the payload.
Schedule a notification summary The summary is personalized to you and ordered by priority based on how you use your apps, with the most relevant notifications at the top. To schedule a notification summary: Go to Settings > Notifications > Scheduled Summary, then turn on Scheduled Summary.
apns-priority. The priority of the notification. If you omit this header, APNs sets the notification priority to 10 . Specify 10 to send the notification immediately. Specify 5 to send the notification based on power considerations on the user's device.
The system makes every attempt to deliver local and remote notifications in a timely manner, but delivery isn't guaranteed. The PushKit framework offers a more timely delivery mechanism for specific types of notifications, such as those VoIP and watchOS complications use.
You should set apns-priority
in your request header,
here's the APNs Provider API doc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With