您的位置:首页 > 移动开发 > Objective-C

[objective-c]推送警告处理

2015-07-29 20:38 423 查看
在使用iOS推送时,出现下面错误:
**[1412:60b] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to
add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.

**[1412:60b] 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.
解决方法:PORJECT --> Capabilities --> Background Modes --> Background fetch & Remote notifications -->选中为on 状态
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: