Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
cordova-plugin-wifiinfo
Advanced tools
Readme
This plugin allows you to read WiFi network status information from applications developed using PhoneGap/Cordova 3.0 or newer.
Only works with Android for now until I figure out how to get this data in Swift.
In your application project directory:
cordova plugin add cordova-plugin-wifiinfo
const wifi = cordova.plugins.wifiinfo;
getHostname(success, failure)
Returns this device's hostname.
wifi.getHostname(function success(hostname){
console.log(hostname); // ipad-of-user.local.
});
getInfo(success, failure)
Returns this device's network info. Android only.
wifi.getInfo(function success(info){
console.log(info); //
/*
{
hostname: 'ipad-of-user.local',
// ConnectionInfo
connection: {
bssid (string)
hidden (boolean): Whether the network is hidden or not
ip (string)
speed (int): Uplink speed
mac (string)
rssi (int)
ssid (string)
frequency (int): WiFi band, Lollipop (API 26+) only
},
// DhcpInfo
dhcp: {
dns1 (string)
dns2 (string)
gateway (string)
ip (string)
lease (int): Lifespan of DHCP lease
netmask (string)
server (string)
},
// list of IPv4 and IPv6 interfaces
interfaces: {
wlan0: {
ipv4Addresses[],
ipv6Addresses[]
}
}
}
*/
});
The MIT License
FAQs
Cordova plugin for gathering WiFi network information
The npm package cordova-plugin-wifiinfo receives a total of 41 weekly downloads. As such, cordova-plugin-wifiinfo popularity was classified as not popular.
We found that cordova-plugin-wifiinfo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.