在使用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.
破解方法還 和上面是一樣的,如圖
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持本站。