The Other Plugins
section in AppBuilder
displays only the Telerik verified plugins and as the PowerManagement
plugin is not one of them, it will not be displayed in the project properties. However, this does not mean that you cannot work with it. On the contrary, as long as you can see it successfully imported under the Plugins
folder in your project, you can go ahead and utilize its functionality.
The plugin allows you to invoke the following methods:
- powerManagement.acquire(onSuccess, onError,runLockScreen); - acquire a new wake-lock to keep device awake
- powerManagement.release(onSuccess, onError); - release the wake-lock
- powerManagement.dim(onSuccess, onError); - acquire a partial wake-lock, allowing the device to dim the screen
If you need any further information on how these methods work on each device, you can follow the links provided by the plugin author in its repository:
I attached a sample project where the plugin is imported and the powerManagement.acquire()
method is invoked as soon as the deviceready
event fires. I tested the app on an iPhone 5C running iOS7.0.4 and it works as expected on my side.