九命一喵,韩国禁播螃蟹舞,冷酷校草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.
破解方法还 和上面是一样的,如图
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持移动技术网。
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
iOS 使用UITextField自定义搜索框 实现用户输入完之后“实时搜索”功能
网友评论