🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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 - npm Package Compare versions

Comparing version

to
0.4.1

samples/package.json

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## [0.4.1](https://github.com/sushichop/cordova-plugin-wifi-manager/releases/tag/0.4.1) (2021-07-09)
- Add sample code. [#28](https://github.com/sushichop/cordova-plugin-wifi-manager/pull/28)
## [0.4.0](https://github.com/sushichop/cordova-plugin-wifi-manager/releases/tag/0.4.0) (2021-07-05)

@@ -2,0 +6,0 @@

2

package.json
{
"name": "cordova-plugin-wifi-manager",
"version": "0.4.0",
"version": "0.4.1",
"description": "Wi-Fi Manager Plugin for Apache Cordova",

@@ -5,0 +5,0 @@ "engines": {

@@ -23,4 +23,3 @@ # cordova-plugin-wifi-manager

When you use this plugin for Android 10 (API level 29) or later, you can connect to the Internet only through your own
(cordova) app. This is due to the specification of new Android API, [WifiNetworkSpecifier](https://developer.android.com/reference/android/net/wifi/WifiNetworkSpecifier).
When you use this plugin for Android 10 (API level 29) or later, you can connect to the Internet only through your own (cordova) app. This is due to the specification of new Android API, [WifiNetworkSpecifier](https://developer.android.com/reference/android/net/wifi/WifiNetworkSpecifier).

@@ -39,17 +38,17 @@ If you want to purposely use the deprecated Android API, run the following.

```javascript
document.addEventListener('deviceready', onDeviceReady, false);
function onDeviceReady () {
const onDeviceReady = () => {
window.wifiManager.connect(
'SAMPLE_SSID',
'SAMPLE_PASSPHRASE',
function () {
() => {
console.log('connect method was successfully called.');
},
function (result) {
console.log('disconnect method failed to be called. ' +
'code: ' + result.code + ', message: ' + result.message);
(result) => {
console.log('connect method failed to be called.');
console.log(`code: ${result.code}, message: ${result.message}`);
}
);
}
};
document.addEventListener('deviceready', onDeviceReady, false);
```

@@ -60,16 +59,16 @@

```javascript
document.addEventListener('deviceready', onDeviceReady, false);
function onDeviceReady () {
const onDeviceReady = () => {
window.wifiManager.disconnect(
'SAMPLE_SSID',
function () {
() => {
console.log('disconnect method was successfully called.');
},
function (result) {
console.log('disconnect method failed to be called. ' +
'code: ' + result.code + ', message: ' + result.message);
(result) => {
console.log('disconnect method failed to be called.');
consoe.log(`code: ${result.code}, message: ${result.message}`);
}
);
}
};
document.addEventListener('deviceready', onDeviceReady, false);
```

@@ -76,0 +75,0 @@

{
"name": "cordova-plugin-wifi-manager-tests",
"version": "0.3.0",
"version": "0.4.1",
"description": "Wi-Fi Manager Plugin Tests",

@@ -5,0 +5,0 @@ "cordova": {

@@ -1,2 +0,2 @@

// Type definitions for cordova-plugin-wifi-manager 0.4.0
// Type definitions for cordova-plugin-wifi-manager 0.4.1
// Project: https://github.com/sushichop/cordova-plugin-wifi-manager

@@ -3,0 +3,0 @@ // Definitions by: Koichi Yokota <https://github.com/sushichop>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet