HTML5 Android Phonegap Web app not working offline with cache manifest
After playing around for a while I get it to work. Here is some points you should verify when stucked with this type of caching problem:
- Take care about url parameters passed with GET method... I was passing parameters when navigating between pages of my app and those parameters was making my urls different from the ones in manifest file making cache to fail.
- When testing offline mode on my phone, I was only shutting down the WIFI thinking this was enough to trigger cached version of my app but it was not... As I was testing my app published under a local network IP (like 192.168.2.11), it appear that my app was trying to reach that IP trough the 3G network that was still ON... So use airplane mode when testing offline.
- Not sure if this one was necessary as I read it on some others threads but I renamed my manifest file to cache.manifest.
Regards