Comments (7)
Yes, when you deploy your application for the first time - plugin takes data from the bundle/assets folder and copies it on the external storage. The reason for that is that you can't modify files in the bundle/assets. After that - it load's www
files from the external storage. If later you add some files to the www
folder and redeploy the app - it is not gonna detect those changes, because plugin configured to update web files via server.
Plugin will reinstall www
folder from the bundle/assets if it detects, that application was updated through the store (probably need to add that info in the readme...). It does that by checking if code version of the app has increased. And the code version is:
- for Android it is a
versionCode
preference inAndroidManifest.xml
. - for iOS it is a
Build
number (not the version number, that is visible to the user on the store).
In config-xml
you can set them like so:
<widget id="com.example.application"
android-versionCode="7"
ios-CFBundleVersion="7">
Why it doesn't compare and reinstall files on each launch/deploy? Because it takes time and usually it is not needed. For development purpose you either use local development mode, or increase build version, or delete app. For after-release - user update app through the store and this is handled fine by the plugin.
from cordova-hot-code-push.
I don't like any of those 3 suggestions and will be a non-starter for me using your plugin :( If the local-development
is true
in the config.xml
can you bypass this speed check and always load from the bundle?
from cordova-hot-code-push.
This is doable. But you can just use cordova-hcp server
for local development, and all your new web files will be installed after application launch via normal update workflow.
from cordova-hot-code-push.
Right, but not for new plugin additions or config.xml changes. People forget to bump the version and expect the app to update.
from cordova-hot-code-push.
Yes, if you add new plugin during the development - you need a clean install. Ok, I'll add it in the next release. Thanks for the feedback.
from cordova-hot-code-push.
For local development you should now use a separate plugin. On each build it will increase build version of the application, that will force the main plugin to reinstall www
folder on the external storage.
from cordova-hot-code-push.
Closing the issue since this now relates to the Local Development Add-on. You should use it for development purpose and to reinstall the www
folder. Or there are other ways to do it, as described in the documentation.
from cordova-hot-code-push.
Related Issues (20)
- ionic2 中 ts代码无法import chcp HOT 1
- Failed to convert json string into application config - FAILED_TO_DOWNLOAD_APPLICATION_CONFIG (Error code -1) HOT 2
- 打包出新版本的app,但热更新代码的服务器里的www没更新,会自动下载就旧的代码覆盖 HOT 2
- Use external sdcard HOT 1
- App Keeps Crashing in Android after installing this Plugin HOT 1
- How to install using Plugman? HOT 1
- Cant make it work remotely HOT 1
- Security Concerns storing WWW files outside CODE BUNDLE. HOT 2
- Filenames with "Umlaute äöü" seen as corrupted HOT 1
- iOS 热更新不生效 HOT 2
- 每次都要把手机上的删掉 再xcode运行才会触发热更新 这不行啊 HOT 1
- 我这样集成好了之后,杀死进程,重新启动,不会触发的,必须把手机上程序卸载了,再安装的时候才会触发,这是为什么呢 HOT 2
- 什么破插件 根本就不行 他妈无语了 连个回复都没有 HOT 3
- Crash app when this plugin works with Proguard on Android HOT 2
- is this maintained ?
- Ionic3,document.addEventListener('chcp_updateLoadFailed',*) not work HOT 2
- Native plugins are getting deleted from cordova_plugin.js after fetching and installing the update using cordova-hot-code-push-plugin. HOT 1
- cordova hot code push plugin , changes are gone after restarting the applicaiton HOT 3
- cordova-hot-code-push在ios的SDK10.x成功在SDK11.x加载失败 HOT 1
- PSA: Deprecation notice 2018-09-30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-hot-code-push.