PhoneGap 3.0+ - keeping the display on (Android & iOS) - disable idle timer screen locking - avoid shutting screen off while app is running
Objective-C Java JavaScript
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
src Fixed bug in iOS disable method Apr 24, 2014
www Added docs Apr 15, 2014
LICENSE Initial commit Apr 15, 2014
README.md Added support for Amazon FireOS Nov 20, 2014
plugin.xml Added support for Amazon FireOS Nov 20, 2014

README.md

PhoneGap-KeepScreenOn-plugin

Keeps the display on - disable idle timer screen locking - avoid shutting screen off while app is running.

Cross-platform plugin for Cordova / PhoneGap >= 3.0

Supported platforms

Android, iOS, Amazon FireOS

Installation

For Cordova:

cordova plugin add git://github.com/zoxxx/PhoneGap-KeepScreenOn-plugin.git

For PhoneGap

phonegap local plugin add git://github.com/zoxxx/PhoneGap-KeepScreenOn-plugin.git

Using the plugin

To activate screen on feature:

keepscreenon.enable();

To deactivate screen on feature:

keepscreenon.disable();

To toggle current state:

keepscreenon.toggle();