Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-wifi-manager

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-wifi-manager

Wi-Fi Manager Plugin for Apache Cordova

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-13.04%
Maintainers
1
Weekly downloads
 
Created
Source

cordova-plugin-wifi-manager

GitHub license npm version GitHub Actions CircleCI Travis js-semistandard-style

Wi-Fi Manager Plugin for Apache Cordova

Supported Platforms

  • Android: 5.0 or later
  • iOS: 10.0 or later

Installation

cordova plugin add cordova-plugin-wifi-manager

Usage

Connect to Wi-Fi access point
document.addEventListener('deviceready', onDeviceReady, false);

function onDeviceReady () {
  window.wifiManager.connect(
    'TARGET_SSID',
    'TARGET_PASSPHRASE',
    function (ssid, passphrase) {
      console.log('Successful. ssid: ' + ssid + ', passphrase: ' + passphrase);
    },
    function (code, message) {
      console.log('Failed. code: ' + code + ', message: ' + message);
    }
  );
}
Disconnect from Wi-Fi access point
document.addEventListener('deviceready', onDeviceReady, false);

function onDeviceReady () {  
  window.wifiManager.disconnect(
    'TARGET_SSID',
    function (ssid) {
      console.log('Successful. ssid: ' + ssid);
    },
    function (code, message) {
      console.log('Failed. code: ' + code + ', message: ' + message);
    }
  );
}

License

cordova-plugin-wifi-manager is available under the MIT license. See the LICENSE file for details.

Keywords

FAQs

Package last updated on 25 May 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc