Need help to implement a full screen mobile browser game

I think the screenshot says it all. (ignore the game, it's just a test). I want the game in full screen mode, without Google's navbar. I know it's possible, I've seen games capable of
Screenshot_20160703-202339.png
Has invited:

TwinkleToes

Favor from:

Any ideas ? I've tried different things but the navbar is still there. The android give permision for fullscreen mode because the OS status bar is hidden.Thanks !

TwinkleToes

Favor from:

   Anyone here good at javascript? ( i suck) I'm trying to force full screen by adding a js code on UiRoot
somethink like this :
 
// Test if fullscreen is suported
var fullscreenEnabled = document.fullscreenEnabled ||
            document.msFullscreenEnabled ||
            document.mozFullScreenEnabled ||
            document.webkitFullscreenEnabled; 
    //fullscreen call
  function makeFullscreen(element) {
        if (element.requestFullscreen) {
            element.requestFullscreen();
        } else if (element.msRequestFullscreen) {
            element.msRequestFullscreen();
        }else if (element.mozRequestFullScreen) {
            element.mozRequestFullScreen();
        }else if (element.webkitRequestFullscreen) {
            element.webkitRequestFullscreen();
        }
  }
//actual code for fullscreen in qici
var fullscreen = qc.defineBehaviour('qc.engine.fullscreen', qc.Behaviour, function makeFullscreen(element) {
    
}, {
});
 
Of course i'm not capable to make it work ,so i'm asking if someone is willing to help me. Thanks!
 

To reply to a question, please Login or registered