問題:You've implemented -[ application:didReceiveRemoteNotification:fetchComple

消息推送時問題:

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. 意思是說:

你已經實現了——(< UIApplicationDelegate >應用程序:didReceiveRemoteNotification:fetchCompletionHandler:],但你仍然需要添加“remote-notification”你的支持UIBackgroundModes Info.plist列表。


解決辦法:PORJECT --> Capabilities --> Background Modes --> Background fetch & Remote notifications -->選中爲on 狀態


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章