集成iOS推送SDK后,程勋运行后控制台日志输出:
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。
意思是实现了application:didReceiveRemoteNotification:fetchCompletionHandler:]这个方法,但是没有在plist文件中设置。
解决:在plist文件中,添加Required background modes 类型array;添加一个item值为App downloads content in response to push notifications。这样就可消除提示日志