appStore1月1日起,将强制使用https,包括支付,更新,以及所有的http请求都必须换成https,官网现在有给出更新部分的解决方案吗
现在我有用nodejs搭建了一个https 的服务器,网页测试,可以用https 进行访问!更新使用https 会直接报如下错误:
js层初始化
if (!this.updateManager) {
this.updateManager = new jsb.AssetsManager(fileName, storagePath);
this.updateManager.retain();
}
if (!this.updateManager.getLocalManifest().isLoaded()) {
this.runGame("不需要更新");
} else {
appLog.log("调用下载");
this.updateManager.update();
appLog.log("调用下载完毕");
this.startDownload();
}
调用update
下面是日志 ,来自 iphone6s debug 模式下的日志
JS: 开始下载资源文件
2016-12-22 11:25:55.266350 TOK[686:370531] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
AssetsManagerEx : Fail to download version file, step skipped
2016-12-22 11:25:59.926045 TOK[686:370531] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
JS: [4777]:更新完毕来源:下载失败:runGame
希望官网大大能够给出一个解决方案。
ios官网 给出消息 暂时不着急了
https://developer.apple.com/news/?id=12212016b18