I was able to go fullscreen by an alternative method using the web app manifest. It does not interfere with the meta viewport.
Here are the steps
- Add this to the head section:
<link rel="manifest" href="/manifest.json">
- Create a manifest file like the following:
{
"short_name": "App Name",
"name": "Full app name",
"icons": [
{
"src": "launcher-icon-4x.png",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "/index.html",
"display": "fullscreen",
"orientation": "landscape"
}
The Google developers documentation to launch in fullscreen using a manifest is available here.
The issue of fullscreen disabling the metaview port is raised here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…