mesmotronic / cordova-plugin-fullscreen

Plugin for Cordova (PhoneGap) to enable Android's various full screen modes
BSD 3-Clause "New" or "Revised" License
168 stars 56 forks source link

Not work after cordova 3.6.3 upgrade #2

Closed mrhieu closed 9 years ago

mrhieu commented 10 years ago

After upgrading cordova to 3.6.3 I can not get this work

mrhieu commented 10 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...

IngusSkaistkalns commented 9 years ago

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.

IngusSkaistkalns commented 9 years ago

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?

neilrackett commented 9 years ago

Thanks for the info: I'll try and work up a fix over the next few days

micky2be commented 9 years ago

Any update?