【发布时间】:2022-04-19 17:22:51
【问题描述】:
我们在使用 Convertigo Server 7.4 的生产环境中有几个应用程序。我们正在使用 flash 更新和 ionic 框架,但使用我们自己的 ui 组件。我们在 ionic 3 和 angular 5 中有一个 convertigo 项目,使用正常工作的闪存更新。目前,我们已经迁移到 Convertigo Server 7.7、ionic 5 和 angular 8,但是迁移后使用 flash update 的更新无法正常工作。
我们在项目中启用了 flash 更新,我们已经包含了 flash 更新文件,并将其设置为 cordova config.xml 中的默认启动 html
所以当应用程序启动时,它会加载闪存更新页面,它会检查更新、比较文件并下载文件夹“file:///data/user/0/es.rtve.omnia.gen/files”中的文件/www/flashupdate" 完成后,调用 window.location.href = this.webview.convertFileSrc('file:///data/user/0/es.rtve.omnia.gen/files/www/flashupdate/index .html');并使用 url “localhost/app_file/data/user/0/es.rtve.omnia.gen/files/www/flashupdate/index.html” 重新加载应用程序,但它不会读取更新的 files.json 文件,但相同作为第一次“http://localhost/files.json”
之前的版本使用的是文件协议,现在使用的是http协议。
我们可以做些什么来让它与 ionic 5 一起工作?
【问题讨论】:
标签: ionic-framework convertigo