In mobile Safari, when viewing my xojo Web app in Landscape mode, the safari browser shows both the URL bar and the Tab bar. This takes up about 1/4 of the screen height.
On other web pages, the user can simply scroll down a bit, and the URL and Tab bars hide, giving back that screen area.
But in Xojo Web, that doesn’t work.
Is there some way to hide those UI elements, either automatically or by letting the user scroll down?
I think I figured it out - it seems that if WebPage.MinimumHeight is taller than the actual screen height, then the user can scroll the page up and the browser will hide the toolbar and URL bar. If MinimumHeight is too short, then this behavior is not allowed.
I discovered this by noticing that in the EddiesElectronics / Web example, the webPage has a minimumHeight of 480, whereas in my app, it was set to 320.
There is a problem however: if you set minimumHeight too high, then the webPage ends up with a bunch of blank/empty content at the bottom.
I think the answer is to set MinimumHeight to the actual screen size + the size of the URL bar and Toolbar, but I’m not sure how to calculate those values…
It is my understanding that this solution only works when the app is installed as a Progressive Web App (adding a shortcut in the list of apps on the phone).
But it won’t hide the address bar when browsing the web and clicking on a url that opens the app. Am I right?