cordova jpush 插件 生产环境得不到 registrationId
2018-06-02 22:14
225 查看
我是这么解决的,先看看我的药你用过没。
症状。
日志
进一步打印日志,添加方法。
输出
之后诊断证书一大堆,未果。
给 cordova config.xml 文件加
build 后尝试成功了。
其实以前会自动生成 xxx.entitlements 文件,不知这回抽什么风,不生成了,非要这样。着实让人蛋疼。
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist"> <string>development</string> </config-file> <config-file parent="aps-environment" target="*/Entitlements-Release.plist"> <string>production</string> </config-file>
症状。
日志
| JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
进一步打印日志,添加方法。
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { NSLog(@"Error: %@", error); }
输出
Error: Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串" UserInfo={NSLocalizedDescription=未找到应用程序的“aps-environment”的授权字符串}
之后诊断证书一大堆,未果。
给 cordova config.xml 文件加
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist"> <string>development</string> </config-file> <config-file parent="aps-environment" target="*/Entitlements-Release.plist"> <string>production</string> </config-file>
build 后尝试成功了。
其实以前会自动生成 xxx.entitlements 文件,不知这回抽什么风,不生成了,非要这样。着实让人蛋疼。
相关文章推荐
- 使用SlowCheetah扩展插件解决测试环境和生产环境xml配置文件内容切换
- 生产环境编译安装php-5.4.23,编译参数推荐(不安装第三方插件)
- Docker 生产环境之日志 - 使用日志驱动插件
- 生产环境系统负载测试
- struts2.1.8中引入json插件环境部署
- Linux英文环境下登陆Chrome印象笔记插件
- 生产环境MySQL5.5.37编译安装
- 亲测生产环境一年多的真正免费的网管软件,功能强大无任何限制,公布个人电话欢迎吐槽
- golang 生产环境编译一定要注意的内存爆炸问题
- 阿里云Linux配置java生产环境
- 生产环境实战spark (1)Linux ubuntu系统安装
- CentOS(5.8/6.4)linux生产环境若干优化实战
- Spring Boot 学习20--监控和管理生产环境
- iOS 如何验证生产环境push
- jdk版本不支持(开发与生产环境不一致)
- windows系统下搭建linux虚拟机及安装各种生产环境的统一解决方案
- oracle 生产环境rman备份
- window环境下搭建react native及相关插件
- 开发环境、生产环境、测试环境
- [MySQL生产环境复制故障修复] Last_IO_Errno: 1045 Last_IO_Error: error connecting to master 'replication@