Cordova auto update application folder

Neji picture Neji · Aug 28, 2014 · Viewed 9.4k times · Source

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

Answer

Ali Gonabadi picture Ali Gonabadi · Apr 25, 2015

cordova-app-loader is an easy to use plugin to update app files via 3 simple steps:

  1. check() for a new manifest
  2. download() files
  3. update() your app!

It supports android and iOS