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.具體如圖
解決辦法:
第一種:info.plist文件配置:Required background modes->App downloads content in response to push notifications
第二種:Product -> Target -> Capabilities -> Background Modes -> 勾選Remote notification
具體如下