cordova-plugin-keep-awake

0.0.1 • Public • Published

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-firebasex" spec="latest" />

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

Package Sidebar

Install

npm i cordova-plugin-keep-awake

Weekly Downloads

5

Version

0.0.1

License

MIT

Unpacked Size

3.61 kB

Total Files

6

Last publish

Collaborators

  • sho5