简体   繁体   English

适用于iOS应用的后台主题推送通知

[英]Topic push notification in the background for iOS app

I was trying to implement GCM in iOS app. 我试图在iOS应用中实现GCM。 I encountered problem when I wanted to send topic specific messages. 我想发送主题特定的消息时遇到问题。 It's working without problem when app is in foreground but I'm not able to receive any messages while app is in the background. 当应用程序在前台时,它可以正常工作,但是当应用程序在后台时,我无法接收任何消息。 Is there any specific setting or GCM message content that need to be used to make it possible? 是否需要使用任何特定的设置或GCM消息内容以使其成为可能? Is the possibility to send push notification to all app users that will receive notification even if application will be in the background? 是否可以向所有将接收通知的应用程序用户发送推送通知(即使应用程序在后台)?

正如ztan所指出的,您要么需要发送用户可见的通知 ,要么使用content_available

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM