你好,歡迎來到IOS教程網

 Ios教程網 >> IOS編程開發 >> IOS開發綜合 >> 使用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. 

破解方法還 和上面是一樣的,如圖

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持本站。

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved