Skip to content

PhoneGap 3.0+ - keeping the display on (Android & iOS) - disable idle timer screen locking - avoid shutting screen off while app is running

License

Notifications You must be signed in to change notification settings

wallneradam/PhoneGap-KeepScreenOn-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(); 

About

PhoneGap 3.0+ - keeping the display on (Android & iOS) - disable idle timer screen locking - avoid shutting screen off while app is running

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 44.0%
  • Java 32.1%
  • JavaScript 23.9%