使用iOS推送時(shí)警告錯(cuò)誤的解決方法
在使用iOS推送時(shí),出現(xiàn)下面錯(cuò)誤:
**[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 狀態(tài)
我還遇到一種情況
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.
破解方法還 和上面是一樣的,如圖
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
- iOS10添加本地推送(Local Notification)實(shí)例
- iOS10 適配遠(yuǎn)程推送功能實(shí)現(xiàn)代碼
- iOS10實(shí)現(xiàn)推送功能時(shí)的注意點(diǎn)和問(wèn)題總結(jié)
- iOS點(diǎn)擊推送消息跳到應(yīng)用指定頁(yè)面方法
- iOS10全新推送功能實(shí)現(xiàn)代碼
- iOS實(shí)現(xiàn)遠(yuǎn)程推送原理及過(guò)程
- iOS自定義推送消息提示框
- 解析iOS10中的極光推送消息的適配
- 輕松搞定iOS本地消息推送
- iOS學(xué)習(xí)筆記之遠(yuǎn)程推送、靜默推送與自定義消息推送
相關(guān)文章
iOS AFNetworking各種功能封裝類(lèi)代碼
下面小編就為大家分享一篇iOS AFNetworking各種功能封裝類(lèi)代碼,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2018-01-01iOS 控制器自定義動(dòng)畫(huà)跳轉(zhuǎn)方法(模態(tài)跳轉(zhuǎn))
下面小編就為大家分享一篇iOS 控制器自定義動(dòng)畫(huà)跳轉(zhuǎn)方法(模態(tài)跳轉(zhuǎn)),具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2018-01-01iOS UICollectionView實(shí)現(xiàn)卡片效果
這篇文章主要為大家詳細(xì)介紹了iOS UICollectionView實(shí)現(xiàn)卡片效果,文中示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2020-04-04詳解iOS應(yīng)用開(kāi)發(fā)中使用設(shè)計(jì)模式中的抽象工廠模式
這篇文章主要介紹了iOS應(yīng)用開(kāi)發(fā)中使用設(shè)計(jì)模式中的抽象工廠模式,示例代碼為傳統(tǒng)的Objective-C,需要的朋友可以參考下2016-03-03iOS Xcode8更新后輸出log日志關(guān)閉的方法
今天剛把xcode更新到了xcode8,運(yùn)行發(fā)現(xiàn)好多l(xiāng)og輸出,怎么關(guān)閉呢,不是很清楚,通過(guò)查閱相關(guān)資料順利關(guān)掉這些log日志,下面小編把方法共享下,需要的朋友參考下2016-09-09