HTML Caching

Everything else that doesn't fall into one of the other categories.
User avatar
MrTAToad
Posts: 291
Joined: Sun Apr 20, 2014 11:43 am
Location: Chichester, England
Contact:

HTML Caching

Post by MrTAToad »

Will there be an option to allow the user to cache the html + code ?
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: HTML Caching

Post 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
User avatar
MrTAToad
Posts: 291
Joined: Sun Apr 20, 2014 11:43 am
Location: Chichester, England
Contact:

Re: HTML Caching

Post by MrTAToad »

Should be easy enough to get a webserver running
docmedes
Posts: 2
Joined: Sat Jul 26, 2014 3:05 pm

offline Web-App and real apps via Phonegap

Post 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 ... )
Post Reply