简体   繁体   English

如何从Google Play商店更新Cordova Sencha Touch应用程序?

[英]How to update cordova sencha touch app from google play store?

I am phonegap/cordova sencha touch developer. 我是phonegap / cordova s​​encha touch开发人员。 Whenever I release a new version say 0.0.5 to google app store, I have to uninstall the 0.0.4 version first then install new one to see the update changes. 每当我向Google App Store发布新版本(例如0.0.5)时,我都必须先卸载0.0.4版本,然后再安装新版本以查看更新更改。 The update is not visible when I update from store. 从商店更新时看不到更新。 Need help. 需要帮忙。

I change the android-versionCode every time when I upload. 我每次上传时都会更改android-versionCode

You need to cancel appcache in your build. 您需要在构建中取消appcache It causes the browser to cache the code. 它使浏览器缓存代码。 Here is a how-to for that. 是一个方法。

As an alternative way (or the above method doesnt work), open .sencha/app/production.defaults.properties set all caching variables to false. 作为一种替代方法(或上述方法不起作用),打开.sencha/app/production.defaults.properties将所有缓存变量设置为false。 If your build type is native , then you have to edit native.defaults.properties . 如果构建类型是native类型,则必须编辑native.defaults.properties

Example: 例:

app.output.cache.enable=false
app.output.manifest.enable=false
app.output.deltas.enable=false
app.output.archive.enable=false

enable.standalone.manifest=false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM