Auto full-screen site?


(Jean-Francois Simard) #1

Hi, :slight_smile:

Is it possible to insert a code in the β€œhead” or somewhere else in order to put the mobile version of the html page in fullscreen like if the user have opened an app from his phablet?

Tks in advace !


(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #2

NOTE: Fullscreen requests need to be called from within an event handler or otherwise they will be denied.


#3

On Mobile Safari, you can hide the URL bar by running this function β€˜On scene Load’:

window.scrollTo(0, 1);

I think the same thing happens on Chrome for Android: https://www.quora.com/How-can-I-force-Google-Chrome-to-fullscreen-in-Android