iOS 極光推送集成打印You've implemented -[ application:didReceiveRemoteNotification:fe

推送功能相信大家和我一樣都用的極光,但是在今天犯迷糊工程沒有配置完全,就爆出了

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

具體如下





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