We want to wrap our GWT application using build.phonegap.com. The application uses Application Cache (HTML5 feature - the one that's let you use manifest file to list all resources of your web app that should be available offline).
We were using this feature about a year ago, when we did not know about phonegap. We were simply builing an Android app from scratched. The app was working fine.
Now we want to switch to PhoneGap. Application Cache does not work out of the box. Investigating the problem a little bit, it turned out that we've forgotten that in native Android App we needed to turn on these:
super.appView.getSettings().setDomStorageEnabled(true);
super.appView.getSettings().setAppCacheMaxSize(1024*1024*8);
super.appView.getSettings().setAppCachePath("/data/data/com.yourdomain/cache");
super.appView.getSettings().setAllowFileAccess(true);
super.appView.getSettings().setAppCacheEnabled(true);
super.appView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
as described in this article:
http://tmkmobile.wordpress.com/2012/0...
Is there a way to enable those in PhoneGap?
We were using this feature about a year ago, when we did not know about phonegap. We were simply builing an Android app from scratched. The app was working fine.
Now we want to switch to PhoneGap. Application Cache does not work out of the box. Investigating the problem a little bit, it turned out that we've forgotten that in native Android App we needed to turn on these:
super.appView.getSettings().setDomStorageEnabled(true);
super.appView.getSettings().setAppCacheMaxSize(1024*1024*8);
super.appView.getSettings().setAppCachePath("/data/data/com.yourdomain/cache");
super.appView.getSettings().setAllowFileAccess(true);
super.appView.getSettings().setAppCacheEnabled(true);
super.appView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
as described in this article:
http://tmkmobile.wordpress.com/2012/0...
Is there a way to enable those in PhoneGap?



