Webview /static/ loads via BasicUI cloud, but not in native iOS app sitemap view

Hi there,

I have created some html Widgets for my default sitemap, working great in local network using PC browser or OH iOS/iPadOS App.

But as soon as I leave my network, OH App automatically switches to cloud access using https://myopenhab.org the html frames stay either white/black or maybe shows a cached html framework without live data.

I tried everything, relative paths ("/static/xxx.html), openhab.local/static/xxx.html, openhab.FQDN/static/xxx.html. I tried even https://home.myopenhab.org/static/xxx.html … the latter has given “Unauthorized” due missing logon possibility and local PC Browser des immediately ask for myopenhab.org credentials in Sitemap, so nothing anybody wants to have …

I remained now on relative paths “/static/xxx.html”, because that way I can at least see my sitemap as designed called inside OH App using cloud connection => Burger Menu => "Basic UI". But that requires myopenhab.org logon every app start … basically nothing else than a nasty workaround.

I can access my widgets using https://myopenhab.org/static/xxx.html after providing my credentials.

So, OH App does resolve the embedded html widgets (paths) differently to Basic UI, making it unusable for that valid approach. Why? What’s the secret?

Cheers

PS: openHABian (bookworm) on RPi4 running OH5.1.4, iOS App latest version given by automatic updates …

@fnu you likely have uncovered a bug in the iOS map.

We will need to resolve WebView URL against the active connection.

should be fixed in Fix Webview widget URLs and auth for cloud connections by timbms · Pull Request #1230 · openhab/openhab-ios · GitHub

Very cool, many thanks, will not mark it already as solved, but looks to me being solved as soon as I can test an updated OH App on iOS/iPadOS :slight_smile:

@fnu Feel free to test it with the latest TestFlight version …

Yeah, well, kind of dilemma, my main iPhone will never see any Beta App …

Nevertheless I tested on my spare iPhone and iPad with relativ paths and Testdrive OH Beta, all Widgets are shown perfectly using relative paths locally & cloud connected, what is IMHO the technical correct way. Perfect :clap:

Due to my main device, I reverted back to working with absolut https://openhab.local:8443 until this change ends in a regular app release. That was a perfect retrospective test, Testflight OH app doesn’t show widgets again with the absolut paths :slight_smile:

What has been little irritating, Testflight OH App shows different indicators, where it is conencted to actually. Irritating that way its shows always Home and just change Icon on the left …

This now shows the name of the active home - in your case Home - with the icon indicating local or remote connection. You can edit your home name in Manage Homes. This is clearer than the previously shown ambiguous IP addresses, which could actually be identical for multiple homes :wink:

Hi, any idea when that fix ends up in a regular app release?

Down the line it seemed to be a long sleeping fundamental bug in the OH app, right?