GCM推送通知don';不要发送到iOS
我正在尝试通过GCM向我的应用程序发送通知,只要该应用程序处于打开状态,它就可以正常工作。如果应用程序处于后台或已被杀死,则在打开应用程序之前,我不会收到任何内容 这个问题只发生在iOS上,在安卓系统上,它可以正常工作 这是发送给GCM的JSON:GCM推送通知don';不要发送到iOS,ios,google-cloud-messaging,Ios,Google Cloud Messaging,我正在尝试通过GCM向我的应用程序发送通知,只要该应用程序处于打开状态,它就可以正常工作。如果应用程序处于后台或已被杀死,则在打开应用程序之前,我不会收到任何内容 这个问题只发生在iOS上,在安卓系统上,它可以正常工作 这是发送给GCM的JSON: { "to": "xxxxxxxxxxxxxx", "priority": "high", "content_available": true, "notification": { "sound": "default",
{
"to": "xxxxxxxxxxxxxx",
"priority": "high",
"content_available": true,
"notification": {
"sound": "default",
"body": "asldsfsadfsadfs",
"title": "asdfasdfasdfasdf"
},
"data": {
"message": "some message"
}
}
谢谢 你能给我们提供日志吗?同时,您可以检查与您的案例相关的堆栈溢出问题:我找到了这个链接(),它可能会对您有所帮助。