razinar -- I do not know how a C2 app works or how it handles Cordova plugins, internally, so I can only speculate...
[quote:bgrrxexb]Hi guys, i'm using the newest version of C2 and Intel XDK.
While exporting for Cordova i check the "Hide status bar" box.
In XDK build setting i check "Fullscreen" box.
The status bar is not showing while my app is running, which is what i needed.
However if the screen timeout or the user lock it, when restoring focus on my app the status bar is visible again and won't go away. Problem occours on Samsung Galaxy S5 with Chrome as browser.
I tried to import the Cordova Status Bar plugin in XDK, and added this action in c2:
Browser - on resumed - Execute javascript "StatusBar.hide();"
- I suspect the Cordova export "Hide status bar" does nothing for the XDK part of that export, we do not read the config.xml file, we read the <project-name>.xdk, assuming you used the "open an Intel XDK project" to import that Construct2 project.
- Thus, the "check fullscreen" in the Build Settings is what is causing your app to go to full screen mode.
- Calling "StatusBar.hide()" upon resume should do the trick, but you do need to make sure that plugin is part of your app. In the XDK, check the Plugin Manager to see if that plugin is part of your app. Full docs for that plugin are here > https://github.com/apache/cordova-plugin-statusbar <
- The config.xml preferences mentioned on that doc page can be added to your intelxdk.config.additions.xml file.
Like I said, I'm speculating, because I don't have detailed knowledge regarding how a C2 app runs internally.