-
Notifications
You must be signed in to change notification settings - Fork 467
Android: First run (right after install) seems to ignore auto-download and auto-install #72
Comments
Hi, Yes, that's sort of a bug. The reason is simple: when application is started for the very first time - it copies So, if you are calling If you know, that from the very beginning you don't need auto-updates and auto-installation - I'll suggest to disable them in the In the future It will probably store those requests to execute after |
@nikDemyankov thank you for the answer. I understand the complications, but actually I have disabled auto-download and auto-install in config.xml, so it should not auto update, but it tries on first run anyway. Fragment of config.xml
Edit: As I see it. My issue is pretty much duplicate of #63. That guys is saying the same thing. |
Thanks, will check it. |
Should be fixed in v1.2.0. If not - reopen the issue. |
+1 I'm using the 1.3.2 plugin version and I have this same problem and more, every update the size of my app double it. The app has 40mb, and the first run doubles the app size, taking 5min to do this, probably is about this copy to external storage approach. The auto-download=false doesn't affect this first copy to external. After the download completed and app reloaded, the app size was increased +40mb, and I changed only one file. I tried to close the app and open again to see if some clean up happens, but no! :( I'm testing in: Libs: |
@diegodotta Plugin stores 2 versions on the external storage: the current working
If you have some large files in the app (audio, movies, etc.) and they are not gonna change very often - then I suggest to update them a bit differently. Store large files in assets instead of www Instead of putting them in Download large files after update Instead of bundling large files in the app - you can download them dynamically on the first app launch. Some games does that, when their size is quite big. Yes, user will have to wait for some time, but if the size of the loaded files are not that big - it should not take too long. When loading is finished - you can store files on file system with the help of cordova-plugin-file. When new release is available - you can re-download these large files (if needed). You should use chcp plugin mainly for updating html/css/js/images, but for heavy stuff, if possible, add some logic. |
Nice idea!! This approach about download the content is knocking the door every new sprint! Maybe it's time to open the door! 💃 |
Maybe it is :) And it should not be too hard to implement. |
Hi, I've disabled auto-install and auto-download in config.xml.
But it seems to be ignored on first run (right after install).
App get stuck on update, and it has to be closed and reopened. On second and all others run, everything is fine.
I have preloader index.html page, which sets things up and redirects to an app.html page.
So basically I'm listening on deviceready event and do chcp update checks.
In my app, I was expecting console logs to be in following order:
But actually on first run I see:
The text was updated successfully, but these errors were encountered: