ios激光推送问题

集成iOS推送SDK后,程勋运行后控制台日志输出:app

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。fetch

意思是实现了application:didReceiveRemoteNotification:fetchCompletionHandler:]这个方法,可是没有在plist文件中设置。ui

解决:在plist文件中,添加Required background modes 类型array;添加一个item值为App downloads content in response to push notifications。这样就可消除提示日志日志

相关文章
相关标签/搜索