Immersive Mode Problem

I was not able to get my game back into full screen immersive mode. Not being able to re-enter immersive mode happened on several devices. If the player swipes up the navigation bar, it should go away after being used.

I was using this code in my main.lua:

display.setStatusBar( display.HiddenStatusBar ) native.setProperty( "androidSystemUiVisibility", "immersiveSticky" )

This happened using Corona build 2015.2744

Can anyone help me getting this to work correctly please?

Please!? :slight_smile:

If the player swipes up the navigation bar, it should go away after being used.

…assuming you meant:  it should go away after NOT being used

otherwise, you might need a system event listener for resume.

otherwise, you might have this particular problem following resume:

  https://forums.coronalabs.com/topic/53170-immersivesticky-and-displayscreenoriginx/ 

There have been struggles with Immersive Sticky. I would recommend you search out the previous threads and give them a read and take what advice you can there.

Rob

Thank you for the tips!

Please!? :slight_smile:

If the player swipes up the navigation bar, it should go away after being used.

…assuming you meant:  it should go away after NOT being used

otherwise, you might need a system event listener for resume.

otherwise, you might have this particular problem following resume:

  https://forums.coronalabs.com/topic/53170-immersivesticky-and-displayscreenoriginx/ 

There have been struggles with Immersive Sticky. I would recommend you search out the previous threads and give them a read and take what advice you can there.

Rob

Thank you for the tips!