使用iOS推送時警告錯誤的解決方法
在使用iOS推送時,出現(xiàn)下面錯誤:
**[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.
破解方法還 和上面是一樣的,如圖
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
iOS 控制器自定義動畫跳轉(zhuǎn)方法(模態(tài)跳轉(zhuǎn))
下面小編就為大家分享一篇iOS 控制器自定義動畫跳轉(zhuǎn)方法(模態(tài)跳轉(zhuǎn)),具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-01-01iOS UICollectionView實現(xiàn)卡片效果
這篇文章主要為大家詳細(xì)介紹了iOS UICollectionView實現(xiàn)卡片效果,文中示例代碼介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下2020-04-04詳解iOS應(yīng)用開發(fā)中使用設(shè)計模式中的抽象工廠模式
這篇文章主要介紹了iOS應(yīng)用開發(fā)中使用設(shè)計模式中的抽象工廠模式,示例代碼為傳統(tǒng)的Objective-C,需要的朋友可以參考下2016-03-03iOS Xcode8更新后輸出log日志關(guān)閉的方法
今天剛把xcode更新到了xcode8,運行發(fā)現(xiàn)好多l(xiāng)og輸出,怎么關(guān)閉呢,不是很清楚,通過查閱相關(guān)資料順利關(guān)掉這些log日志,下面小編把方法共享下,需要的朋友參考下2016-09-09