Note that there are some explanatory texts on larger screens.

plurals
  1. POHtml5 cache manifest in a UIWebView?
    text
    copied!<p>I'd like to be able to use the html5 cache manifest to store images locally on an iPhone that is visiting the page via a <code>UIWebView</code> within an app.</p> <p>I've set up a sample that I think conforms to the specs, and appears to work in safari 4 and mobile safari, but not in my app's <code>UIWebView</code>.</p> <p>The sample html is set up at <a href="http://bynomial.com/html5/clock3.html" rel="noreferrer"><code>http://bynomial.com/html5/clock3.html</code></a>.</p> <p>This is very similar to the sample provided in the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html" rel="noreferrer"><code>HTML5 draft standard</code></a>.</p> <p>Here is the entire (non-template) code of the sample app I'm using for testing:</p> <pre><code>- (void)applicationDidFinishLaunching:(UIApplication *)application { // I thought this might help - I don't see any difference, though. NSURLCache* cache = [NSURLCache sharedURLCache]; [cache setDiskCapacity:512*1024]; CGRect frame = [[UIScreen mainScreen] applicationFrame]; UIWebView* webView = [[UIWebView alloc] initWithFrame:frame]; [window addSubview:webView]; NSString* urlString = @"http://bynomial.com/html5/clock3.html"; NSURL* url = [NSURL URLWithString:urlString]; NSURLRequest* request = [NSURLRequest requestWithURL:url]; [webView loadRequest:request]; [window makeKeyAndVisible]; } </code></pre> <p>I've reviewed a few related questions on stackoverflow, but they don't seem to provide info to solve this. For example, I'm pretty sure the files I'm trying to cache are not too large, since they are just a couple small text files (way &lt; 25k).</p> <p>Any ideas for how to get this to work?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload