Skip to content

snuffy/cordova-plugin-keep-awake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-keep-awake

Using this plug-in, you can control the automatic sleep at any time.

Installation

Install the plugin by adding it to your project's config.xml:

<plugin name="cordova-plugin-keep-awake" spec="https://github.com/snuffy/cordova-plugin-keep-awake" />

or by using cordova CLI

cordova plugin add cordova-plugin-firebasex

Usage

// start keep awaking
if (window.KeepAwake) {
  KeepAwake.start();
}

// stop keep awaking
if (window.KeepAwake) {
  KeepAwake.stop();
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published