亲宝软件园·资讯

展开

iOS推送报错 使用iOS推送时警告错误的解决办法

幸福小祢 人气:0
想了解使用iOS推送时警告错误的解决办法的相关内容吗,幸福小祢在本文为您仔细讲解iOS推送报错的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:iOS推送报错,iOS推送警告,iOS推送错误,下面大家一起来学习吧。

在使用iOS推送时,出现下面错误:

**[1412:60b] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to  
add "fetch" to the list of your supported UIBackgroundModes in your Info.plist. 
  
 
**[1412:60b] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], 
but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. 


 解决方法:PORJECT --> Capabilities --> Background Modes --> Background fetch & Remote notifications -->选中为on 状态

我还遇到一种情况   

You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. 

破解方法还 和上面是一样的,如图

加载全部内容

相关教程
猜你喜欢
用户评论