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 !


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


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: