android - Ttitanium webview and HTML5 application cache -


i using titanium create application android. app uses webview load external html5 webpages. webpage uses manifest cache page , assets. works fine on desktop browsers , third party app browsers in android (chrome).

when view page in webview in titanium build app, seems manifest not used, page loads server. same problem occurs when use build in browser of phone (htc 1 x).

what trying accomplish pages offline available, internet not required tot view cached pages. there fix problem, or should go in direction solve problem?

the manifest file:

cache manifest # version 1   leerlingen.html jquery.js style.css handler.js  network: * 

first: titanium provides more webview. if planned display web pages maybe should have @ phonegap / cordova might fit needs in better way.


as you've noticed not browsers support html5 caching feature expected. can't if doesn't work android in general or specific version because webkit support depends of used webkit version. , different.

edit: seems (in native android) feature can enabled written here: application cache in html5 doesn't work in android phonegap application. not possible in titanium (there might inofficial tweaks don't know http://docs.appcelerator.com not possible).

personally i'd prefer solution. cache data myself , display if there no network connection. but depends on try achieve. having few content doesn't change make sense. having dynamically changing data (like twitter stream instance) difficult. depends on users , want access app.

and there open question: when want use caching features why want create app? creating simple mobile webpage same job. when creating app wouldn't use caching features of html 5. should keep static resources in app , load data network. can achieved both titanium , phonegap / cordova. titanium more useful native ui , native features while phonegap / cordova more appropriate html5 based layout.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -