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

版权声明:随便转载,方便就写个出处。 https://blog.csdn.net/xiao562994291/article/details/51911670

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

阅读更多

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