Page 1 of 1

HTML Caching

Posted: Thu Jun 19, 2014 5:11 pm
by MrTAToad
Will there be an option to allow the user to cache the html + code ?

Re: HTML Caching

Posted: Fri Jun 20, 2014 12:10 pm
by Fred
You mean for offline run ? I don't know exactly how it could be done (didn't looked at it), but for now you can ship a small webserver to run your app offline

Re: HTML Caching

Posted: Sat Jun 21, 2014 1:45 pm
by MrTAToad
Should be easy enough to get a webserver running

offline Web-App and real apps via Phonegap

Posted: Sat Jul 26, 2014 3:22 pm
by docmedes
It's not complicated to make a web-app.
You have to insert this line into your HTML

<!DOCTYPE HTML>
<html manifest="OfflineApp.manifest">
<head>
...

The file OfflineApp.manifest includes all the files an logo, that is necessary for the offline-function.
The files must be in the folder of the manifest or in subfolders.
Every line of the manifest points to one file.

When you start this programm from a server, the browser stored it automatically for offline-use. In apple-IOs an android you can define a icon for the desktop.

There a some usefull things, so you can define the javascript / html5 looking like a real program and not browser-like :

You can stopp scrolling and stopp the possibility to in- or decrease the desk.

<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=0.6667, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="YES" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="...">
<meta name="copyright" content="Copyright 2012 ABC Gesellschaft" />
<link rel="apple-touch-icon" href="logo.png" />
<link rel="apple-touch-startup-image" href="nsb/images/SplashScreen.png" />

At least :

You can upload your javascrpit/html5 to phonegap ( actually free ) an so you can get an downloadable app like name.apk, which you can install on your phone or tablet.

For android, windows, palm-ios an some other os its open, for ios it's possible, but more complicated ( just apple ... )