bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
120 stars 18 forks source link

Adressbar is visible on smartphone webapp #165

Closed io43 closed 4 months ago

io43 commented 4 months ago

On android 14 + chrome 121 + UI3-268 when you add it as shortcut on home-screen the address bar is still visible, i tried to find the issue and the code seems to be there but isn't working

<meta name="mobile-web-app-capable" content="yes"> in ui3.html

and

"display": "standalone", in applet\manifest.json,

any idea how to show the app in fullscreen like usual webapps?

i tried to change to "display": "fullscreen", but it dont help at all

io43 commented 4 months ago

well to get fullscreen i just added address:port to chrome://flags/#unsafely-treat-insecure-origin-as-secure i found out it here https://github.com/bp2008/ui3/issues/161

bp2008 commented 4 months ago

That is weird, a secure context has never been a requirement for the address bar to disappear on Android when using a shortcut created via the browser's menu "Add to Home Screen" option. I've been doing that for years. Are you sure you were opening UI3 from the shortcut on the home screen? I'd have tried closing all apps on the android device and then opening it fresh just to make sure no weirdness was happening.

io43 commented 4 months ago

yea i tried all of that multiples times but well the only browser installed is vanadium an chromium fork which have some hardening patchs that may interfere like this one https://github.com/GrapheneOS/Vanadium/blob/d2d708f7a7bd14c1a10207ded220a547a34d7d8b/patches/0047-mark-non-secure-origins-as-dangerous.patch but i don't know, it is working fine anyways now with the flag i can 'install as app' instead of 'add to homescreen' and there is no titlebar with web address anymore

bp2008 commented 4 months ago

Yeah it is probably a "security feature" of that browser.