Closed mrhieu closed 9 years ago
http://cordova.apache.org/announcements/2014/09/22/cordova-361.html "Move handling of Fullscreen preference to CordovaActivity" May be this is the reason...
Doesnt work on 4.4.2 Sony Xperia Z2 Tablet, but somehow it did work on emulator. Runninng something like this:
hideSoftKeys: function () {
AndroidFullScreen.isImmersiveModeSupported(
function() {
alert(1);
AndroidFullScreen.immersiveMode(
function() { alert(2) },
function(e) { alert(e); }
);
},
function(e) { alert(e); }
);
}
only alert(1) pops up.
OK, do specifically this ->
hideSoftKeys: function () {
AndroidFullScreen.isSupported(
function() {
AndroidFullScreen.hideSystemUI(
function() { }, function(e) { alert(e); }
);
},
function(e) { alert(e); }
);
AndroidFullScreen.isImmersiveModeSupported(
function() {
AndroidFullScreen.immersiveMode(
function() { }, function(e) { alert(e); }
);
},
function(e) { alert(e); }
);
}
then it goes in immersive mode (sliting soft keys and status bar).
Tested without hideSystemUI
call - then it did not. If called only hideSystemUI
, then it worked as expected - hide keys till interaction, then show them. So my guess is that under hideSystemUI
is some flag, that should be set also for immersive mode?
Thanks for the info: I'll try and work up a fix over the next few days
Any update?
After upgrading cordova to 3.6.3 I can not get this work