I have compiled an app on PhoneGap multiple times(same app), and never had a problem until this afternoon. It seems PhoneGap will not update the js file (app only consists of index.html and mobile.js). If I make changes to the html file and re-build, it shows in the newest APK, but when I update the JS file(even blanked it out as a test), the APK file still has the old JS in it. Am I doing something wrong? And if so what?
Share
The html ways of disabling the cache are
and add the version number as the query string when loading the js file.
If these don’t work then try disabling the cache of the webview. In the main activity, inside the onCreate method, add either of the lines below.
or