1.提示「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.」xcode
解決:在項目配置的Capabilities菜單的Background Modes菜單中選中「Remote notification」。若是沒有看到選項菜單,須要將Background Modes菜單打到ON狀態。app
2.提示「Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.」fetch
緣由:個人CodeSigning中的Provision Profile沒有選擇正確,緣由是我在apple的dev中心修改了配置,但沒有更新到xcode。更新能夠在帳戶管理中找到,xcode菜單在Xcode->Preferences->account選項卡,在Apple IDs中找到你得帳號,點擊右下角的view detail按鈕,在彈出的窗口中點擊左下角的刷新按鈕便可刷新最新的Provision Profile。最後在CodeSigning中的Provision Profile中選擇最新的值便可。code