服务端调用苹果的apns推送消息,设置了如下参数
{ "aps": { "alert": { "title" : "标题", "body" : "内容"} } }
锁屏的时候,弹窗title位置显示的还是app的名称,但是拉开下拉页,显示的却是title设置的“标题”,是IOS本身机制就是这样,还是本人还需要设置什么参数。
谁能帮本人解答下,谢谢!
解决方案
50
这个是苹果的行为,没有办法自定义
苹果对这个字段的描述:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/TheNotificationPayload.html
其他人对这个的讨论:
http://stackoverflow.com/questions/23649103/how-to-set-push-subject-as-the-title-for-push-notification
苹果对这个字段的描述:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/TheNotificationPayload.html
其他人对这个的讨论:
http://stackoverflow.com/questions/23649103/how-to-set-push-subject-as-the-title-for-push-notification