
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
com.peerio.cordova.plugin.carrier
Advanced tools
This plugin was forked from https://github.com/dtmtec/cordova-plugin-carrier
cordova-plugin-carrier is a cordova plugin to get the device's carrier name, mcc, mnc and country code. The information comes from the device's SIM card.
The plugin works on both Android and iOS platforms. To install it, go to your project dir and run this command:
cordova plugin add br.com.dtmtec.plugins.carrier
On both Android and iOS, the plugin returns to the app an JSON with the following properties: carrierName, countryCode, mcc, mnc.
<script>
function alertCarrier() {
var succ = function (data) {
alert(data['carrierName']);
alert(data['countryCode']);
alert(data['mcc']);
alert(data['mnc']);
}
var err = function () {
alert('Error!');
}
window.plugins.carrier.getCarrierInfo(succ, err)
}
document.addEventListener('deviceready', alertCarrier, false);
</script>
FAQs
Cordova Carrier Plugin
The npm package com.peerio.cordova.plugin.carrier receives a total of 62 weekly downloads. As such, com.peerio.cordova.plugin.carrier popularity was classified as not popular.
We found that com.peerio.cordova.plugin.carrier 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.