HTML5 offline cache doesn't seem to work


hi all,

trying understand how html5 offline cache works, can develop offline web apps, , having real hard time @ it. in fact, i've been testing on , off since last 3 weeks. i've read numerous tutorials, including docs on offline cache available @ developer.apple.com. far haven't gotten work properly.

set cache manifest this:

code:
  cache manifest  index.html  icon.jpg    network:    
notice there no resources depend on server, leave network: section blank (the apple dev docs required, though not including makes no difference).

set index.html this:

code:
  <!doctype html>  <html manifest="cache.manifest">      <head>          <meta http-equiv="content-type" content="text/html; charset=utf-8" />  		<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>      	<meta name="apple-mobile-web-app-capable" content="yes" />       		<meta name="apple-mobile-web-app-status-bar-style" content="black" />  	    <link rel="apple-touch-icon" href="icon.jpg"/>    <script>  cache = window.applicationcache;    cache.onchecking = function()  {    statbar.innerhtml="status: checking";  }    cache.ondownloading= function()  {    statbar.innerhtml="status: downloading";  }      cache.oncached = function()   {    statbar.innerhtml="status: cached:";  }    cache.onerror =  function()  {  	statbar.innerhtml='status: error ocurred.';  }    cache.onupdateready= function()  {  	statbar.innerhtml='updated';  }    cache.onprogress= function()  {  	statbar.innerhtml = statbar.innerhtml + "progress!";  }    </script>          <title>new web project</title>      </head>      <body>          <h1>new web project page</h1>  	          <div id="statbar">status:</div>  <script>  statbar = document.getelementbyid("statbar");  </script>      </body>  </html>    
i have set .htaccess file correct mime-type:

code:
addtype text/cache-manifest .manifest  
when accessed on ipod, progress div displays "checking" "downloading" few times, throws onerror event, displaying "an error ocurred". and, if add home screen , click on it, opens followed "no connection" message, closes automatically.

know doesn't have objective-c, still has ios programming, question not banned being off-topic. not asking here if didn't feel i've run out of other online resources me troubleshoot problem. so, if can tell me i'm doing wrong, appreciated. (the pages hosted on http://www.factordice.com/html5).
 

please, if has information on issue, appreciate help. if ios not support html5 offline caché, i'd know (although information on developer.apple.com claims does). i've run out of options, , still not know doing wrong. in anticipation.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Mail will not Quit when shutting down

MacBook Air 2011 Reviews

What's the max amount of RAM an iMac can have to run BootCamp & Parallels Windows 7?