Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
cordova-plugin-rssi
Advanced tools
This plugin allows you to read WiFi RSSI from applications developed using Cordova 3.0 or newer.
Works on both Android and iOS platforms, but will not pass the Apple App Store Review process.
Tested on iOS Simulator devices: iPhone 5, 6, 7, 8, SE, X, XR, XS, XS Max
NOTE: Does not return any values for iPad at this time.
In your application project directory:
cordova plugin add cordova-plugin-rssi
const rssi = cordova.plugins.rssi;
rssi.read(success, failure)
Returns the device's current WiFi RSSI information via 3 parameters:
rssi.read(function success(data){
console.log(data);
// -> {rssi: -38, bars: 4, isIPhoneX: false}
});
rssi
: WiFi Received Signal Strength Indicator
null
if unavailable-100 ≤ x ≤ 0
bars
: Number of visible bars in WiFi icon
0 ≤ x ≤ 4
: *Range values only tested for Android
4
: RSSI -55+
3
: RSSI -56
- -66
2
: RSSI -67
- -77
1
: RSSI -78
- -88
0
: RSSI -89-
isIPhoneX
: Flag for detecting whether iPhone X acquisition was used
While developing in browser, a mock can be utilized to prevent errors. See an example Ionic 4 app at emcniece/ionic-cordova-rssi-demo.
This open-source project was made possible by some fine people over at CNY Apps.
v1.1.2
v1.1.1
v1.1.0
v1.0.0
FAQs
Cordova plugin for reading WiFi RSSI
The npm package cordova-plugin-rssi receives a total of 1 weekly downloads. As such, cordova-plugin-rssi popularity was classified as not popular.
We found that cordova-plugin-rssi 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.