集成iOS推送SDK後,程勳運行後控制檯日誌輸出:app
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。fetch
意思是實現了application:didReceiveRemoteNotification:fetchCompletionHandler:]這個方法,可是沒有在plist文件中設置。ui
解決:在plist文件中,添加Required background modes 類型array;添加一個item值爲App downloads content in response to push notifications。這樣就可消除提示日誌日誌