iOS推送通知优先级 [英] iOS Push Notification Priority
本文介绍了iOS推送通知优先级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经设置了推送通知并且可以正常工作,但是,有时我在终端设备上的交付会遇到延迟.有没有一种方法可以将推送的优先级"键设置为10,以便立即发送推送?我不相信我可以将它与其他键(例如"alert")一起放入字典中,因为Apple的文档说它应该与有效载荷分开.
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.
推荐答案
You should set apns-priority
in your request header,
here's the APNs Provider API doc.
这篇关于iOS推送通知优先级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文