cordova-open-native-settings
Advanced tools
Comparing version 1.3.0 to 1.4.1
{ | ||
"name": "cordova-open-native-settings", | ||
"version": "1.3.0", | ||
"version": "1.4.1", | ||
"description": "Native settings opener for Cordova", | ||
"cordova": { | ||
"id": "net.gsrweb.cordova.plugins.cordovaopennativesettings", | ||
"id": "cordova-open-native-settings", | ||
"platforms": [ | ||
@@ -25,3 +25,3 @@ "android", | ||
"name": "cordova", | ||
"version": ">=3.0.0" | ||
"version": ">=4.0.0" | ||
} | ||
@@ -45,2 +45,5 @@ ], | ||
"username": "perlish" | ||
}, | ||
{ | ||
"username": "emcniece" | ||
} | ||
@@ -47,0 +50,0 @@ ], |
@@ -1,19 +0,27 @@ | ||
#NativeSettings plugin for Cordova (6/7) | ||
# NativeSettings plugin for Cordova (6/7) | ||
The plugin allows you to open OS settings on iOS 8/9/10 and Android, via cordova-based app. For example, it will allow you to open the keyboard settings, Wifi, bluetooth etc (full list below). | ||
##Adding/Removing the Plugin | ||
## Adding/Removing the Plugin | ||
It will be saved to the config.xml file | ||
Ionic Framework: | ||
```bash | ||
cordova plugin (add|rm) https://github.com/guyromb/Cordova-open-native-settings.git --save | ||
ionic cordova plugin (add|rm) cordova-open-native-settings | ||
``` | ||
Cordova: | ||
```bash | ||
cordova plugin (add|rm) cordova-open-native-settings --save | ||
``` | ||
or via npm (It will be saved to the package.json file) | ||
```bash | ||
npm (install|rm) https://github.com/guyromb/Cordova-open-native-settings.git --save | ||
npm (install|rm) cordova-open-native-settings --save | ||
``` | ||
##Using the plugin (opens Location Settings in Android and Application Settings in iOS) | ||
## Using the plugin (opens Location Settings in Android and Application Settings in iOS) | ||
@@ -24,3 +32,3 @@ ``` | ||
###Example for iOS and Android - open Wifi settings | ||
### Example for iOS and Android - open Wifi settings | ||
@@ -45,3 +53,3 @@ ```js | ||
##Settings Options | ||
## Settings Options | ||
You can use any constant from the following list: | ||
@@ -60,2 +68,3 @@ * I tried to map Android and iOS together, however, they are not always the same. | ||
"autolock", // ios | ||
"battery_optimization", // android | ||
"bluetooth", // ios, android | ||
@@ -121,3 +130,3 @@ "castle", // ios | ||
##Notes | ||
## Notes | ||
* Android plugin based on the following information: https://developer.android.com/reference/android/provider/Settings.html#ACTION_DREAM_SETTINGS | ||
@@ -128,3 +137,3 @@ * iOS plugin based on the following information: https://gist.github.com/phynet/471089a51b8f940f0fb4 | ||
##License | ||
## License | ||
``` | ||
@@ -131,0 +140,0 @@ The MIT License |
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
24453
145
157