解决Xcode 7 无法推送 或者 打印错误 "remote-notification"
2015-11-06 17:40
190 查看
升级到Xcode 7 之后发现了不少得小问题 ,
看了官方的提示之后,解决了暂时遇到的一些小问题
下面是其中的一个问题,做推送的时候会报出如下错误
You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to
add "remote-notification" to the list of your
supported UIBackgroundModes in your Info.plist.
意思是在infoplist
文件中缺少对推送的 配置
下面是解决方法:
在工程的
infoplist 文件中 按图 添加如下:
需要用到的代码 : Required background
modes App downloads content in response to push notifications
或者
之间右键 infoplist文件 showInFinder
右键选择大开方式
用文本编辑工具打开
在最下面的</dict>上面添加代码
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
如下添加
关闭,编辑
之后便OK了
看了官方的提示之后,解决了暂时遇到的一些小问题
下面是其中的一个问题,做推送的时候会报出如下错误
You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to
add "remote-notification" to the list of your
supported UIBackgroundModes in your Info.plist.
意思是在infoplist
文件中缺少对推送的 配置
下面是解决方法:
在工程的
infoplist 文件中 按图 添加如下:
需要用到的代码 : Required background
modes App downloads content in response to push notifications
或者
之间右键 infoplist文件 showInFinder
右键选择大开方式
用文本编辑工具打开
在最下面的</dict>上面添加代码
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
如下添加
关闭,编辑
之后便OK了
相关文章推荐
- javaScript中push函数用法实例分析
- jquery中push()的用法(数组添加元素)
- .net 通过URL推送POST数据具体实现
- perl push的用法及子程序返回值的反思
- 浅析PHP微信支付通知的处理方式
- javascript使用数组的push方法完成快速排序
- JavaScript使用push方法添加一个元素到数组末尾用法实例
- JavaScript数组函数unshift、shift、pop、push使用实例
- Android中的广播、服务、数据库、通知、包等术语的原理和介绍(图解)
- 简介JavaScript中的push()方法的使用
- 通过 Push 来提高移动应用的活跃度 3ff0
- Eclipse中Pull参数问题
- 基于Android移动平台僵尸网络模拟工具设计与实现
- 基于dwr2.0的Push推送技术详细解析以及实例
- IOS消息推送
- 配置iOS推送通知与推送通知iOS客户端编写实现及推送服务器端编写
- (转)NSNotification example
- python获取天气+email通知
- iOS推送方法调用