Does anyone have experience with this? I am publishing for Android with Intel XDK.

In Intel XDK there is a tickbox for 'Full Screen'. If deselected, the Android status bar and navigation bar is visible in the built game. If the 'Full Screen' tick box is selected neither the navigation bar nor the status bar are visible.

I want the nav bar to be present, but not the status bar. I think the way to do it, is to have 'Full Screen' deselected and then add the status bar plugin, and then somehow edit that plugin so that on start, the status bar is hidden.

In the documentation for the status bar plugin it says that the status bar can be hidden, and gives some code to do it... But I have no idea where to enter that code, which file needs to be updated, or how to do it through Intel XDK.

Can anyone offer any advice on this?

Last edited by Artpunk on Mon May 23, 2016 4:45 am, edited 1 time in total.

Thanks for your reply @blackhornet. This helped a lot. I didn't understand that I needed to call the 'StatusBar.hide' attribute from C2.

My game is now working they way I was aiming for. By leaving 'Full Screen' deselected in Intel XDK, and then hiding the status bar using this method above, both the status bar and navbar are hidden while the game is running but can easily be accessed by touching the edge of screen, which is fine, because it provides an easy way to quit out of the game if needed.

Hi, yes I always have the 'Hide status bar' option ticked in Cordova export. It doesn't seem to do anything tbh.

Well... the problem for me with using the 'fullscreen' option in XDK is that makes both the status bar AND the nav bar hidden and inaccessible. What I was initially aiming for was to have the status bar hidden, but the nav bar visible at all times during game play to provide an easy way to quit out of the game. So the 'Fullscreen' option didn't allow that.The method above works for me: -'fullscreen' unticked in XDK - this makes nav bar and status bar both visible during game play-Add status bar plugin in XDK. Call 'StatusBar.hide' in C2 - this causes both the nav bar and the status bar to initially be hidden during game play BUT they both become visible when the player touches the edge of the screen.. allowing an easy way to quit from the game via the nav bar. This isn't exactly what I was trying to achieve but it's close enough that i'm happy with it.

Artpunk wrote: ...This isn't exactly what I was trying to achieve but it's close enough that i'm happy with it.

Nice to see you solved the problem. May be a good idea to do some type of plugin for C2 to call statusbar xdk plugin functions, i think i'll do it in a few weeks . Will you need to solve this issue in more apps?

Well I am currently working on my first game. But once i get this one finished I have a million ideas falling out of my head for future games, so I'll probably be battling with these kinds of issues in the future. Hopefully the status bar issue is resolved for me now though. But if you made a plugin that gave a bit more control: allowing the nav bar to be visible at all times for eg, that could be useful?

Well I am currently working on my first game. But once i get this one finished I have a million ideas falling out of my head for future games, so I'll probably be battling with these kinds of issues in the future. Hopefully the status bar issue is resolved for me now though. But if you made a plugin that gave a bit more control: allowing the nav bar to be visible at all times for eg, that could be useful?

The plugin will call the methods of the official cordova plugin: https://github.com/apache/cordova-plugin-statusbar