Son of the Wai-Pan
Son of the Wai-Pan

Reputation: 13201

How do I prevent Mobile Safari from accessing the network for a cached webapp?

I have a simple web app that I want to use locally (i.e. I don't want it to ever access the network). All the code is packaged according to the Safari Web Content Guide. I was successful in downloading my web app to my iPhone. I noticed, though, that even though my web app doesn't connect to anything remotely, there will be a network access (the network access indicator fires).

I suspect that iOS is checking to see if the web app is fresh (i.e. checking the cache manifest to see if it needs to update any files). Is there a way to prevent this? It really screws up the user experience.

Upvotes: 2

Views: 176

Answers (1)

hunterloftis
hunterloftis

Reputation: 13809

The never-ending network spinner is a bug in iOS; you won't be able to get around it with a web app:

http://www.devthought.com/2012/09/22/understanding-the-ios6-ajax-bugs/

Upvotes: 2

Related Questions