Actions
Support #11115
openMake Wt WebApp Fullscreen on iOS Homescreen
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/28/2022
Due date:
% Done:
0%
Estimated time:
Description
Hey there,
i am trying to make my Wt WebApp fullscreen. What i found is utilising js might do the trick. However, this is not working for me or i do not know from where to call it:
wApp->doJavaScript("document.documentElement.webkitRequestFullscreen();");
The Wt Homepage (which claims to be a Wt App itself) perfectly does the job correct. How is it done? Thanks in advance.
Updated by Roel Standaert about 2 years ago
I think you may be thinking of the viewport meta tag, rather than the requestFullscreen()
function.
The Wt site includes <meta>
tags in the <head-matter>
section of its wt_config.xml
to make this happen, e.g.:
<server>
<application-settings location="*">
<head-matter>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head-matter>
</application-settings>
</server>
Updated by Manuel Weichselbaumer about 2 years ago
Thanks. This did the trick for me:
<server>
<application-settings location="*">
<head-matter>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
</head-matter>
</application-settings>
</server>
Actions