[英]App doesn't receive push notifications in background mode
I'm developing an iOS app that receives well the remote notification when it is in the running state, but it doesn't receive any thing and the notification banner is not showing up in the background state. 我正在开发一个iOS应用,当它处于运行状态时,它可以很好地接收远程通知,但是它没有收到任何东西,并且通知横幅没有在后台显示。 I set notification stale to banner, background fetch and remote notification are checked in the background modes menu, I'm using xcode 6 and
didReceiveRemoteNotification
to handle the notification. 我将通知过期设置为横幅,在后台模式菜单中检查了后台获取和远程通知,我正在使用xcode 6和
didReceiveRemoteNotification
来处理通知。 Any ideas on how to fix this issu please ? 请问有关如何解决此问题的任何想法?
Check if Background App Refresh is enabled for your application. 检查是否为您的应用程序启用了后台应用程序刷新。 Then check what callback method you're using, this must be
然后检查您使用的是哪种回调方法
- (void)application:(UIApplication *)application didReceiveRemoteNotification:fetchCompletionHandler:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.