It's doable on iOS and Android but requires native code, so solutions that work there don't work with PhoneGap Build. There is also a plugin but it's not supported.
Based on the number of questions on StackOverflow this seems to be a pretty common app requirement.
Based on the number of questions on StackOverflow this seems to be a pretty common app requirement.
- 3 Posts
- 1 Reply Like
Posted 8 years ago
- 1911 Posts
- 199 Reply Likes
It's not something we currently support - I'll mark it on our internal issue tracker as feature request.
- 3 Posts
- 0 Reply Likes
Please do!!! This is very important for geolocation apps and the like which need the idle timer disabled. It is a simple flag to set in iOS (https://developer.apple.com/library/i...) and it sounds like Android has something similar. Can you add this as an option to the config file? Really needed, I can only use PhoneGap:Build for development due to this one missing feature....for production I have to use iOS only to set this one setting. Thanks in advance for adding this feature!
- 2 Posts
- 0 Reply Likes
It's important for me too because in my game (sudoku) user is thinking about next placement and just at the moment he is almost decided ZAS! screen dark, and he hates me and my game!
- 9 Posts
- 0 Reply Likes
I share the idea that it's important to be able to prevent the screen locking for various kind of applications, especially for geolocation, since phonegap is not able to work in the background.
Please, implement this, I'll wait patiently :)
Please, implement this, I'll wait patiently :)
- 3 Posts
- 1 Reply Like
Pavel, it's good of you to offer to wait patiently, but my team doesn't have the luxury of patience with a pending app release. This is unfortunately a deal-breaker for our app and, I imagine, many others.
- 1911 Posts
- 199 Reply Likes
After looking through the documentation, it looks as though this is better suited for a PhoneGap plugin than a config.xml property (as your app should disable this property once it's done).
I'm going to work on this plugin and see if something can be readied asap.
I'm going to work on this plugin and see if something can be readied asap.
- 1 Post
- 0 Reply Likes
Will this plugin do what you're all trying for? https://github.com/phonegap/phonegap-...
- 1 Post
- 0 Reply Likes
- 1 Post
- 0 Reply Likes
Hi Andrew, I'm keen for news on this too. I have a client who needs this feature and is asking about it, without it I'll have to roll my own. TIA!
- 2 Posts
- 0 Reply Likes
Hi Andrew, Any news, now playing a long audio file and the app goes to sleep, audio stops and the buttons are reset. How to solve this without a prevent idle function?
- 2 Posts
- 0 Reply Likes
- 1911 Posts
- 199 Reply Likes
Things were held up while we were preparing the 1.0 release (for Monday's event).
I have a version of the plugin available here, that you can use if you're building locally:
https://github.com/alunny/ScreenDim
I'm going to work on getting that plugin into PhoneGap Build as soon as possible.
I have a version of the plugin available here, that you can use if you're building locally:
https://github.com/alunny/ScreenDim
I'm going to work on getting that plugin into PhoneGap Build as soon as possible.
- 14 Posts
- 2 Reply Likes
Hi Andrew.
I'm new to this, can you point me in the right direction to see how it's done please?
Regards
Robyn
I'm new to this, can you point me in the right direction to see how it's done please?
Regards
Robyn
- 8261 Posts
- 263 Reply Likes
Answered here: https://getsatisfaction.com/nitobi/topics/screen-time-out
- 2 Posts
- 0 Reply Likes
Hey, so any ETA on when we can expect to have this as part of a config.xml file or such? (Or even just instructions so phone gap build, truly supports this lock-out feature)
- 35 Posts
- 0 Reply Likes
- 5 Posts
- 0 Reply Likes
Added this to the Future Plugin Support thread, as would be really useful to have this incorporated.
- 23 Posts
- 0 Reply Likes
Hy Andrew. Any news about the plugin to PhoneGap Build. We really need this PowerManagement (at least: force screen on).
- 45 Posts
- 0 Reply Likes
- 1 Post
- 0 Reply Likes
Screen on is a must, we have to tell our users to tap screen every 10 seconds, which is so annoying for users as they have to upload a big file. File upload stops when phone is locked.
- 23 Posts
- 0 Reply Likes
- 14 Posts
- 0 Reply Likes
- 4 Posts
- 0 Reply Likes
Surely there is enough requests now to get this into Phonegap Build?? We got PowerManagement working easily on Android, but can't find a simple way to implement that or ScreenDim on iOS using Phonegap Build.
We have an application where a contractor is following a route to various places, and inputting data relevant to that place, with screen base information remaining constant for that route. We NEED to be able to disable the timeout for that screen only (and of course re-enable it when the route is finished) so that the driver does not have to start again at each location.
HELP!!!!!
We have an application where a contractor is following a route to various places, and inputting data relevant to that place, with screen base information remaining constant for that route. We NEED to be able to disable the timeout for that screen only (and of course re-enable it when the route is finished) so that the driver does not have to start again at each location.
HELP!!!!!
- 6 Posts
- 1 Reply Like
- 5 Posts
- 0 Reply Likes
Phonegap Build 2.5. Cordova on 2.7. And what about this? This is important! Thanks.
This conversation is no longer open for comments or replies.
This conversation is no longer open for comments or replies.
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 61 Followers
-
PhoneGap Build
- 15111 Conversations
- 275 Followers









ben.millspaugh
Please let us know where you stand with this issue.....is there a tracking number that we can use to check the status? Currently the ONLY reason we can't use PhoneGap:Build to compile our apps is this issue. Please consider adding it ASAP. Thank you in advance for any help you can provide to expedite this issue.