add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.(转载)

在使用个推时出现这个错误 [<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.

找了下资料,解决方法也很简单,如下图:


 

这时你在打开plist文件会看到


 

这时你在去运行程序就不会有这个错误提示了。

参考:http://stackoverflow.com/questions/20009006/parse-warning-from-didreceiveremotenotificationfetchcompletionhandler

posted @ 2015-05-05 15:39  此处应有掌声  阅读(556)  评论(0编辑  收藏  举报