cordova-plugin-sim
Advanced tools
Comparing version 1.3.1 to 1.3.2
# Changelog | ||
## v1.3.2 | ||
- Android: use Cordova Permissions API | ||
- Android: drop Android Support Library requirement | ||
## v1.3.1 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "cordova-plugin-sim", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A plugin to get the device's SIM data (carrier name, mcc mnc, country code, telephonenumber, imei, etc)", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -40,2 +40,12 @@ # cordova-plugin-sim | ||
} | ||
// Android only: check permission | ||
function hasReadPermission() { | ||
window.plugins.sim.hasReadPermission(successCallback, errorCallback); | ||
} | ||
// Android only: request permission | ||
function requestReadPermission() { | ||
window.plugins.sim.requestReadPermission(successCallback, errorCallback); | ||
} | ||
``` | ||
@@ -60,6 +70,2 @@ | ||
### Requirements | ||
Install `Extras` / `Android Support Library` from Android SDK. | ||
### Under the hood | ||
@@ -280,2 +286,2 @@ | ||
cordova-plugin-sim is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository. | ||
**cordova-plugin-sim** is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository. |
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
34957
285