Software Archive
Read-only legacy content
17061 Discussions

Wake lock and hideStatusBar question

Jochen_M_1
Beginner
503 Views
Hi,
 
I wonder how to use the both commands:
 intel.xdk.device.managePower(true, false);
 intel.xdk.device.hideStatusBar;
 
In the emulator they work fine, but when I build the app and try it on android and iOS, it will not work here.
I also tried to use these commands inside onDeviceReady, but it will only fire inside the emulator but not inside the app on the device.
 
Do you have a hint for me or could you show me some lines of example code how to implement it?
 
Best Regards,
Jochen M.
0 Kudos
2 Replies
John_H_Intel2
Employee
503 Views

Are you including the plugin when you build your app?

0 Kudos
Jochen_M_1
Beginner
503 Views

Hi John,

yes, I included the "Device" plugin. I also tried it with including all plugins to get sure, no chance...

0 Kudos
Reply