Hello everyone.
In my game I do this:
if( platform == "Android" ) then local androidVersion = string.sub( system.getInfo( "platformVersion" ), 1, 3) if( androidVersion and tonumber(androidVersion) \>= 4.4 ) then native.setProperty( "androidSystemUiVisibility", "immersiveSticky" ) --native.setProperty( "androidSystemUiVisibility", "lowProfile" ) elseif( androidVersion ) then native.setProperty( "androidSystemUiVisibility", "lowProfile" ) end end
This works perfectly.
But there is a problem if a user sees an advertising video. In fact, when the video ends, the bar becomes visible again.
Do I have to invoke that code to remove the bar every time after a video or is there another way?
If the publicity creates a suspend event for the app I could also use a runtime listener. What do you recommend?
