I have an offline application cordova, composed of simple html and pictures, all inserted in a sub folder (android_asset/www/app). I would like to add a second online application (android_asset/www/update/) that, check for update, download and replace the first. Is this a reasonable solution for in app synchronization?
Thanks for the time
cordova-app-loader is an easy to use plugin to update app files via 3 simple steps:
check()
for a new manifestdownload()
filesupdate()
your app!It supports android and iOS
You could achieve desired functionality if you will use Cordova File Plugin.
Main trick is to load files not from android_asset/www/app
, but from location on the phone storage, using cdvfile protocol (which point to the file location on the phone SDcard).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With