cordova-plugin-sim
Advanced tools
Comparing version 1.3.2 to 1.3.3
# Changelog | ||
## v1.3.3 | ||
- Android: Adjust required API levels | ||
- iOS: add CoreTelephony imports | ||
- docs: Ionic 2 Usage | ||
- docs: API level 25 codes | ||
## v1.3.2 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "cordova-plugin-sim", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "A plugin to get the device's SIM data (carrier name, mcc mnc, country code, telephonenumber, imei, etc)", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -67,2 +67,26 @@ # cordova-plugin-sim | ||
### Ionic 2 Usage | ||
```typescript | ||
import { Sim } from 'ionic-native'; | ||
Sim.getSimInfo().then( | ||
(info) => console.log('Sim info: ', info), | ||
(err) => console.log('Unable to get sim info: ', err) | ||
); | ||
Sim.hasReadPermission().then( | ||
(info) => console.log('Has permission:', info) | ||
); | ||
Sim.requestReadPermission().then( | ||
() => console.log('Permission granted'), | ||
() => console.log('Permission denied') | ||
); | ||
``` | ||
Required: [ionic-native](https://www.npmjs.com/package/ionic-native) v2.2.13 | ||
See [Ionic Native documentation](https://ionicframework.com/docs/v2/native/sim/). | ||
## Android Quirks | ||
@@ -182,2 +206,5 @@ | ||
| 15 | `NETWORK_TYPE_HSPAP` | HSPA+ | ||
| 16 | `NETWORK_TYPE_GSM` | GSM | ||
| 17 | `NETWORK_TYPE_TD_SCDMA` | TD-SCDMA | ||
| 18 | `NETWORK_TYPE_IWLAN` | IWLAN | ||
@@ -184,0 +211,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36276
312