肖的技术博客

复杂为简单而生

You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:],

You’ve implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add “remote-notification” to the list of your supported UIBackgroundModes in your Info.plist.

推送用下面这个方法时。
- (void)application:(UIApplication )application didReceiveRemoteNotification:(NSDictionary )userInfo fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler
遇到这个问题,在stockoverflow上找到了答案。
这里写图片描述
就是在capabilites中设置一下自己后台的模式。
stockoverflow

阅读更多
版权声明:随便转载,方便就写个出处。 https://blog.csdn.net/xiao562994291/article/details/51911670
文章标签: Info-plist UIBackgrou
个人分类: IOS
上一篇ios 小数点后两位
下一篇dylibs/frameworks are only supported on iOS 8.0 and later
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭