Hello @Oliver2 - Happy New Year.
Seems I’m still doing something wrong, as connecting to the URL does return an error:
Sorry
Requested content not found.
Debug information
* **Url:** /static/manifest/index.html
* **Path:** /static/manifest/index.html
* **Hash:**
* **Params:**
* **Query:**
* **Route:** (.*)
This is the URL I use to connect to my favor homescreen usually, which works well.
http://192.168.5.22:8192/page/pgWeWeHome
I used the following URL to use the approach you described instead, which fails:
http://192.168.5.22:8192/static/manifest/index.html
This is the folder structure I use - did I miss something ?
[St@NAS-3 manifest]$ pwd
/share/Container/openhab4/userdata/etc/openhab/html/manifest
[St@NAS-3 manifest]$ ls -l
total 8
-rw-r--r-- 1 openhab openhab 1273 2023-12-27 12:40 index.html
-rw-r--r-- 1 openhab openhab 884 2023-12-27 12:40 manifest.webmanifest
[St@NAS-3 manifest]$
manifest.webmanifest
{
"name": "openHAB",
"short_name": "openHAB",
"description": "openHAB",
"lang": "de-DE",
"start_url": "/page/pgWeWeHome",
"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"
}
]
}
index.html
<!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>
Any idea why it doesn’t work for me?
thanks again for your help.