【发布时间】:2015-05-05 09:23:59
【问题描述】:
如果我关闭了我的应用并发送这样的推送通知:
{
"alert" : "Hello, world!",
"sound" : "default"
}
我的应用正确接收推送通知。但如果我发送这个:
{
"aps" : {
"alert" : "Hello, world!",
"sound" : "default"
}
}
我的应用从不显示通知。
如果我的应用已打开,我在委托 didReceiveRemoteNotification userInfo: [NSObject : AnyObject] 中正确收到了最后一条通知
为什么 iOS 8 不解析最后一条通知并将其显示为通知?
【问题讨论】:
标签: ios json notifications push-notification apple-push-notifications