当前位置: 移动技术网 > IT编程>移动开发>IOS > 使用iOS推送时警告错误的解决方法

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

2019年07月24日  | 移动技术网IT编程  | 我要评论

九命一喵,韩国禁播螃蟹舞,冷酷校草pk野蛮校花

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

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

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持移动技术网。

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网