我使用Parse.com作为后端并发送推送通知。据我所知,在通知有效负载中,可以根据Apple文档设置“优先级”:
Priority
1 byte
The notification’s priority. Provide one of the following values:
10 The push message is sent immediately.
The remote notification must trigger an alert, sound, or badge on the device. It is an error to use this priority for a push that contains only the content-available key.
5 The push message is sent at a time that conserves power on the device receiving it.
显然,立即传递消息更为可取(我正在构建一个消息传递应用程序)如果我在Parse上将优先级设置为“10”会不会有所不同?或者Parse是否设定了自己的优先权?对此的任何指示都会很棒。谢谢!
答案 0 :(得分:0)
我最终在包中发送了一个nil声音文件,以寻求优先级。尽管手动设置优先级会很好。