- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, but I do not know how to use
I'm trying this
<script> intel.xdk.device.managePower(true,false); </script>
But.. dont work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you include the Intel Device plugin in the plugins included in the app?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So you don't want the device to go to sleep when using the app? Try to stay away from the intel.xdk plugins unless you cannot find an alternative. Those are no longer maintained. There is a popular plugin by Eddy Verbruggen - https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin
To prevent sleeping - window.pluginsinsomnia.keepAwake();
To allow sleeping again - window.plugins.insomnia.allowSleepAgain();
![](/skins/images/8B5EA638CA3587CA763EE9EF53643DD4/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page