title: Kiosk mode for Chrome or Firefox
body: <p>I need to write a kiosk launcher for a number of Android devices. It is supposed to launch Chrome or Firefox, showing a specific webpage in fullscreen. That page already calls the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen" rel="nofollow noreferrer">HTML5 requestFullScreen() API</a>, but it doesn't work because that call is not coming from a user-generated event, and therefore <a href="https://stackoverflow.com/a/30568765/722036">gets declined by a browser for security reasons</a>.</p>
  
  <p>I did some <a href="https://android.stackexchange.com/search?q=chrome+kiosk">searching</a> and I found the following questions:</p>
  
  <ul>
  <li><a href="https://android.stackexchange.com/questions/88031/how-to-set-kiosk-mode-in-chrome">https://android.stackexchange.com/questions/88031/how-to-set-kiosk-mode-in-chrome</a></li>
  <li><a href="https://android.stackexchange.com/questions/115258/android-kiosk-mode">https://android.stackexchange.com/questions/115258/android-kiosk-mode</a></li>
  </ul>
  
  <p>Both of these answers end up pointing to the existing apps or browsers, some of those are doing exactly what I'm trying to accomplish. This feels like an overkill, as I'm already using an app to get this thing going. And I can't use a special browser like suggested <a href="https://android.stackexchange.com/a/115264/158025">here</a> because major browsers like Firefox or Chrome are more reliable in terms of updates and supported features.</p>
  
  <p>But at the same time, the fact that these apps exist means that whatever I need to do is, well, doable. From <a href="https://play.google.com/store/apps/details?id=com.procoit.kioskbrowser" rel="nofollow noreferrer">Kiosk Browser Lockdown</a>: </p>
  
  <blockquote>
    <p>[Pro features]</p>
    
    <p>Fullscreen mode / Hidden Toolbar</p>
  </blockquote>
  
  <p>My question is this: what are the Android APIs they use to accomplish this? Is there anything I'm missing at this point? What are the documentation pages, guides or articles I should be looking for?</p>
  
  <p>Thank you</p>