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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

幸福小祢   2021-03-22 我要评论
想了解使用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. 

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

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们