加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

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

发布时间:2020-12-14 14:14:09 所属栏目:Java 来源:网络整理
导读:在使用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. *

在使用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. 

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

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程小技巧。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读