This plugin control powermanagement so that an application can run for a long time for iOS.
platforms: ios,android
$ cordova plugin add com.simplec.plugins.powermanagement


Plugin for PhoneGap Build

The original plugin was not compatible with PhoneGap Build. We created a plugin.xml for ios. Android will follow shortly, but we are not deploying there right now and cannot test it.

The rest of this file is edited the original readme

The PowerManagement plugin offers access to the devices power-management functionality. It should be used for applications which keep running for a long time without any user interaction.

For details on power functionality see:

Using the plugin

// prevent device from sleeping

// allow device to sleep