I konw I can build webapp to Apple apps by using phonegap, but if I want use it on iPad, I must become Apple Developer($99 or $299/year). but I just want use it small-scale.
So I wonder if there is any browser apps can copy all webapp's file to iPad's document folder, and viewing them in an embedded browser like phonegap? I know I can add webapp to the Home Screen and interact with them like standard apps, but I want it offline, as the webapp is 2GB and no need internet.
The browser app should be fullscreen, no status bar, no Bonuce effect, and load index.html auto.
Yes, you can do this with the meta tag
apple-mobile-web-app-capable
and with HTML5 Application Cache. As you discovered, you can add an app to the Home Screen. With this technique, the app will also run offline and full screen.Add this to your HTML
<head>
:Set up your cache:
Add
manifest="cache.manifest"
to<html>
.cache.manifest
is the name of the file you'll use to define what to cache. It can be named anything, but I actually call minecache.manifest
.Then make sure your web server has the MIME type for
.manifest
set to:Then create a file named
cache.manifest
, put it in your app root. Under theCACHE
section, put the files you want cached (in your case, all files). You can also use*
to mean 'all files'.Every time you push a release, change the version number in your cache manifest. Any change in the file will work, but the version number is a perfect mechanism for this.
Then put this at the top of your script inside your
onload
or equivalent.