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

cordova-plugin-sim

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-sim - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

.editorconfig

8

package.json
{
"name": "cordova-plugin-sim",
"version": "1.0.2",
"version": "1.1.0",
"description": "A plugin to get the device's SIM data (carrier name, mcc mnc, country code, telephonenumber, etc)",

@@ -11,3 +11,4 @@ "cordova": {

"wp7",
"wp8"
"wp8",
"windows"
]

@@ -30,4 +31,3 @@ },

"cordova-ios",
"cordova-wp7",
"cordova-wp8"
"cordova-windows"
],

@@ -34,0 +34,0 @@ "engines": [

@@ -23,3 +23,3 @@ # cordova-plugin-sim

```
```js
document.addEventListener("deviceready", onDeviceReady, false);

@@ -30,2 +30,10 @@

}
function successCallback(result) {
console.log(result);
}
function errorCallback(error) {
console.log(error);
}
```

@@ -51,3 +59,7 @@

* `phoneNumber`: String - phone number string for line 1, for example, the [MSISDN](http://en.wikipedia.org/wiki/MSISDN) for a GSM phone
* `phoneNumber`: String - phone number string for line 1, for example, the [MSISDN](http://en.wikipedia.org/wiki/MSISDN) for a GSM phone <sup>1</sup>
* `deviceId`: String - the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones
* `deviceSoftwareVersion`: String - the software version number for the device, for example, the IMEI/SV for GSM phones
* `simSerialNumber`: String - the serial number of the SIM, if applicable
* `subscriberId`: String - the unique subscriber ID, for example, the IMSI for a GSM phone
* `callState`: Number - the call state (cellular) on the device

@@ -58,4 +70,6 @@ * `dataActivity`: Number - the type of activity on a data connection (cellular)

* `simState`: Number - the state of the device SIM card
* `isNetworkRoaming`: Boolean - true if the device is considered roaming on the current network, for GSM purposes
Notice: the content of phoneNumber is unreliable (see [this](http://stackoverflow.com/questions/7922734/getting-reliable-msisdn-from-android-phone-voicemailnumber-line1number) and [this](http://stackoverflow.com/questions/25861064/retrieving-line1-number-from-telephonymanager-in-android) article).
<sup>1)</sup> Notice: the content of phoneNumber is unreliable (see [this](http://stackoverflow.com/questions/7922734/getting-reliable-msisdn-from-android-phone-voicemailnumber-line1number) and [this](http://stackoverflow.com/questions/25861064/retrieving-line1-number-from-telephonymanager-in-android) article).
Sometimes phoneNumber value is only an empty string.

@@ -62,0 +76,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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