Swift - GCM:不显示iOS远程推送通知
答
您需要的content_available
参数发送到true
https://developers.google.com/cloud-messaging/http-server-ref
您还需要在自己的应用Info.plist
文件添加remote-notifications
为UIBackgroundMode
。 https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW22
嗯,我只是需要不显示通知来时。这真的是解决方案吗? –
@PanMluvčí,是的。你想要的是一个无声的远程通知,为此你需要做这个答案中陈述的两件事。 –
好吧,我已经添加远程通知 我Info.plist文件 然后告诉我的队友后端设置content_available .......仍然通知可见:-( –