native.setProperty( "androidSystemUiVisibility", "immersiveSticky" ) bug on Android 6.0

 Hi everyone,

 I have just updated my Nexus7 2013 to Android 6.0 and found a bug of navigation bars.

 I use this code:

if system.getInfo("platformName") == "Android" then native.setProperty( "androidSystemUiVisibility" , "immersiveSticky" ) end

 But I find out that if my app suspends ( like: press home, showAleart, login facebook, login G+ v.v.v), then resume, the navigation bar will appear again. So I try this code:

local function onSystemEvent( event ) if event.type == "applicationResume" then if system.getInfo("platformName") == "Android" then timer.performWithDelay(250,function() native.setProperty( "androidSystemUiVisibility" , "immersiveSticky" ) end) end end end Runtime:addEventListener( "system", onSystemEvent )

  The problem happened like that: the thress buttons ( Back, Home, Menu ) disppear, but the blackbar doesn’t, as you can see in the images below:

1SqHdUQ.png

m80DlMc.png

 I check with some other apps from Store (not built with Corona), and the navigation bars works correctly. So can you please check it out on 6.0 devices?

 Last P/S: After a few tests, I find out that maybe cause by my Google Now Laucher. Another Nexus7 6.0 with default laucher doesn’t have this bug. So can you do anything about that?

It’s a bug in the Android OS as can be seen here…

   https://code.google.com/p/android/issues/detail?id=170752

As you can see from the above bug reported submitted to Google, it’s happening to other native Android developers as well.  This includes Unity developers too.  Unfortunately, we have no idea why it happens to some apps and why it doesn’t happen in others.  And no work-around has been found.  Nor has Google provided a work-around or solution yet as far as I’ve seen.  And part of the problem is that an Android app has no idea that this black bar is being rendered at the bottom of the screen.  No clues are provided via native APIs as far as we’ve seen.  Because of this, you may want to avoid using this feature unless you’ve discovered a way to work-around it.

 Thank Joshua. 

 This is the first time I saw it T_T. Guess Google need to do something with their Android.

It’s a bug in the Android OS as can be seen here…

   https://code.google.com/p/android/issues/detail?id=170752

As you can see from the above bug reported submitted to Google, it’s happening to other native Android developers as well.  This includes Unity developers too.  Unfortunately, we have no idea why it happens to some apps and why it doesn’t happen in others.  And no work-around has been found.  Nor has Google provided a work-around or solution yet as far as I’ve seen.  And part of the problem is that an Android app has no idea that this black bar is being rendered at the bottom of the screen.  No clues are provided via native APIs as far as we’ve seen.  Because of this, you may want to avoid using this feature unless you’ve discovered a way to work-around it.

 Thank Joshua. 

 This is the first time I saw it T_T. Guess Google need to do something with their Android.