If you want to launch openhab from home screen and want to load a custom page you need to do the following:
create the following folder:
ohab/etc/openhab/html/manifest
create new index.html file:
<!doctype html>
<html>
<head>
<meta charset="UTF-8"/>
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content: blob:; style-src 'self' 'unsafe-inline';"/>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui,viewport-fit=cover"/>
<meta name="theme-color" content="#f7f7f7"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="msapplication-tap-highlight" content="no"/>
<title>openHAB</title>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<link rel="apple-touch-icon" href="/res/icons/apple-touch-icon.png" crossorigin="use-credentials"/>
<link rel="icon" href="/res/icons/favicon.svg" type="image/svg+xml" sizes="any" crossorigin="use-credentials"/>
<link rel="icon" href="/res/icons/128x128.png" type="image/png" sizes="128x128" crossorigin="use-credentials"/>
<link rel="manifest" href="/static/manifest/manifest.webmanifest" type="application/manifest+json" crossorigin="use-credentials"/>
<meta name="mobile-web-app-capable" content="yes"/>
</head>
<body>
<h1>Add to homescreen now</h1>
</body>
</html>
create webmanifest file:
{
"name": "openHAB",
"short_name": "openHAB",
"description": "openHAB",
"lang": "de-DE",
"start_url": "/page/mobileTabbed",
"id": "/page/Home",
"display": "fullscreen",
"background_color": "#ffffff",
"theme_color": "#f7f7f7",
"icons": [
{
"src": "/res/icons/128x128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "/res/icons/144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "/res/icons/152x152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "/res/icons/192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/res/icons/256x256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "/res/icons/512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
Launch index.html file in your iOS browser and add to home screen