Hi Yannick (@ysc ),
sorry for bothering you. I’d like to bring this problem to your attention:
When launching MainUI as PWA after a while the client gets disconnected from the server.
I have seen this problem rarely on older OH3 versions and have this problem with OH3.2 ~10 times a day.
This problem has been confirmed here and the disconnection problem does not appear when running MainUI from regular browser app and activating full screen mode manually.
- Colors, Icons and Labels do not represent the actual state anymore
- If I click on a cell which his configured with
actionCommandAlt:
it only sends one of the two commands even when pressing multiple times (as can be seen in the log) - If I launch one of my status widgets which just shows current states of selected items, none of the states can be retrieved from the server
- after restarting the browser app everything works fine again.
Server details:
- OH3 Version 3.2
- Zulu Java
- Kernel version Linux 5.10.63-v7l+ (latest openhabian)
Client details:
- iPad mini 4 iOS 15.2, Safari browser, (wall mounted, constantly connected to OH3)
- everything which might interfere from a networking point of view ist deactivated (e.g. private MAC address)
Unfortunately it is not a solution to start MainUI within browser and manually activate full screen mode because if you scroll up a page safari browser interpreetes this to exit fullscreen mode.
See here manifest and json file:
<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"/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="mobile-web-app-status-bar-style" content="black-translucent"/>
<link rel="apple-touch-icon" href="/res/icons/apple-touch-icon.png" type="image/png" sizes="180x180" 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"/>
<link href="/css/app.css" rel="stylesheet">
</head>
<body>
<h1>Add to homescreen now</h1>
</body>
</html>
{
"name": "openHAB",
"short_name": "openHAB",
"description": "openHAB",
"lang": "de-DE",
"start_url": "/page/Home",
"scope": "/",
"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"
}
]
}