Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I update assets files( js css images) in phonegap android app without update my app in play/app store

I am using Phonegap to develop my app, so I need to package CSS,JS,JS libs, index.html to assets/www folder, and

super.loadUrl("file:///android_asset/www/index.html",4000);

but is there's a way to update my CSS,JS,JS libs, index.html without updating my app(NOT update apk file wherever from store or our own server) -- this is because some page I need to be interactive with native and it(CSS/JS,index.html) may need to be changed .

Sound stupid, but is there a way to satisfy this requirement, and how about iOS solution?

I've read from this : cannot modify the files in /android_assets/www with the File API , can't get a file object from an asset

However , I found copy files in assets to sdcard.

So, can I update the assets files , in some way ? or this sound stupid way(I don't know iOS solution):

1 copy it to sdcard
2 update the css/js/index.html 3 super.loadUrl("/mnt/sdcard/myapp/index.html",4000);

Is there other solutions, THX ?

like image 609
no7dw Avatar asked Dec 21 '13 04:12

no7dw


1 Answers

For Cordova/Phonegap it's available, a contentsync plugin for download remote resource and update application assets or Cordova plugins without store republishing.

Check here: phonegap-plugin-contentsync

like image 114
Frix33 Avatar answered Nov 16 '22 07:11

Frix33