We are developing html5 offline webapp for ipod touch / iphone. We have manifestations and everything that works correctly, but we cannot understand why our application will not open after closing the tab in iphone safari.
For example, sake, this is what works:
1) open url in standalone HTML file in safari on ipod touch
2) exit safari, turn off Wi-Fi
3) go back to safari where the dynamic webapp is in the window, click update
4) the application works offline!
however, if we do this, the offline application will disappear:
5) add a bookmark to the application URL (or icon on the main screen)
6) close the tab or window in safari
7) open the bookmark or icon on the main screen
8) error message: "The page cannot be opened: Safari cannot open the page because it is not connected to the Internet."
I figured out the problem a bit and you know how this happens, I will find the answer 2 seconds after you press the "message" here .. but in any case, my gut feeling is that the current version of the iphone OS version is safari tries to look for dns on the url and mistakenly, instead of realizing that it already has a locally stored application.
Has anyone come across this? Is there any flag that I can set in my manifest or something to fix this?
jason
source
share