🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

cordova-plugin-android-wifi-lock

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-android-wifi-lock

Cordova Android plugin to prevent WiFi radio being disabled

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

cordova-plugin-android-wifi-lock

Allows an application to keep the Wi-Fi radio awake. Normally the Wi-Fi radio may turn off when the user has not used the device in a while. Acquiring a WifiLock will keep the radio on until the lock is released. Multiple applications may hold WifiLocks, and the radio will only be allowed to turn off when no WifiLocks are held in any application.

Supported Platforms

  • Android

Installation

cordova plugin add cordova-plugin-android-wifi-lock --save

Methods

  • WiFiLock.acquire() <Promise> Locks the Wi-Fi radio on until release() is called.
  • WiFiLock.isHeld() <Promise> Checks whether this WifiLock is currently held.
  • WiFiLock.releass() <Promise> Unlocks the Wi-Fi radio, allowing it to turn off when the device is idle.

Keywords

cordova

FAQs

Package last updated on 27 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts