I am trying to use the application cache in HTML5 for the Android PhoneGap application, but this does not work, it does not feel when using ApplicationCahce events.
function logEvent(event) { console.log(event.type); } window.applicationCache.addEventListener('checking', logEvent, false); window.applicationCache.addEventListener('noupdate', logEvent, false); window.applicationCache.addEventListener('downloading', logEvent, false); window.applicationCache.addEventListener('progress', logEvent, false); window.applicationCache.addEventListener('cached', logEvent, false); window.applicationCache.addEventListener('updateready', logEvent, false); window.applicationCache.addEventListener('obsolete', logEvent, false); window.applicationCache.addEventListener('error', logEvent, false);
In addition, this code runs on iOS PhoneGap and Android Browser and this link is for supported platforms. Cahce App Supported Platforms
So any suggestion would be helpful.
source share