{"_id":"@bazuka5801/cordova-open-native-settings","name":"@bazuka5801/cordova-open-native-settings","dist-tags":{"latest":"1.5.6"},"versions":{"1.5.6":{"name":"@bazuka5801/cordova-open-native-settings","version":"1.5.6","description":"Native settings opener for Cordova","cordova":{"id":"cordova-open-native-settings","platforms":["android","ios"]},"repository":{"type":"git","url":"git+https://github.com/guyromb/Cordova-open-native-settings.git"},"keywords":["native-settings","ecosystem:cordova","cordova-android","cordova-ios"],"engines":{"cordovaDependencies":{"1.5.0":{"cordova":">4.0.0"}}},"author":{"name":"Guy Rombaut","email":"admin@gsrweb.net"},"contributors":[{"name":"Guy Rombaut","email":"admin@gsrweb.net","url":"http://gsrweb.net"},{"name":"unknown"},{"name":"unknown"},{"name":"unknown"},{"name":"unknown"},{"name":"unknown"}],"license":"MIT","bugs":{"url":"https://github.com/guyromb/Cordova-open-native-settings/issues"},"homepage":"https://github.com/guyromb/Cordova-open-native-settings#readme","_id":"@bazuka5801/cordova-open-native-settings@1.5.6","gitHead":"e30cc9b1cd378fd3433d962791d83a0b6a22750e","_nodeVersion":"18.20.7","_npmVersion":"10.8.2","dist":{"integrity":"sha512-k82lWx49s4aYwDfIZwxkYPiJHTQBJVL4vk9apUY1aA9MBcNxSlsrca//bHFlzEKVA9PKdk2Sl8KWNZrJipq+JA==","shasum":"dd820a59570fa2beabbee1a774b2be20ec9584dc","tarball":"https://registry.npmjs.org/@bazuka5801/cordova-open-native-settings/-/cordova-open-native-settings-1.5.6.tgz","fileCount":8,"unpackedSize":30987,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB2SIu+MxARneXFhr4ouCtdXiNesA6VUIabuhwSmuC3aAiEAjxpq3OkMD/GWwo+E0wJuMCgZF5XTMl4Rbm8hb9Ym1Dw="}]},"_npmUser":{"name":"bazuka5801","email":"bazuka5801@mail.ru"},"directories":{},"maintainers":[{"name":"bazuka5801","email":"bazuka5801@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordova-open-native-settings_1.5.6_1749128867193_0.44996742381099986"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-05T13:07:47.117Z","1.5.6":"2025-06-05T13:07:47.362Z","modified":"2025-06-05T13:07:47.655Z"},"maintainers":[{"name":"bazuka5801","email":"bazuka5801@mail.ru"}],"description":"Native settings opener for Cordova","homepage":"https://github.com/guyromb/Cordova-open-native-settings#readme","keywords":["native-settings","ecosystem:cordova","cordova-android","cordova-ios"],"repository":{"type":"git","url":"git+https://github.com/guyromb/Cordova-open-native-settings.git"},"contributors":[{"name":"Guy Rombaut","email":"admin@gsrweb.net","url":"http://gsrweb.net"},{"name":"unknown"},{"name":"unknown"},{"name":"unknown"},{"name":"unknown"},{"name":"unknown"}],"author":{"name":"Guy Rombaut","email":"admin@gsrweb.net"},"bugs":{"url":"https://github.com/guyromb/Cordova-open-native-settings/issues"},"license":"MIT","readme":"# NativeSettings plugin for Cordova (6/7)\n\nThe 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).\n\n## Adding/Removing the Plugin\nIt will be saved to the config.xml file\n\nIonic Framework:\n\n```bash\nionic cordova plugin (add|rm) cordova-open-native-settings\n```\n\nCordova:\n\n```bash\ncordova plugin (add|rm) cordova-open-native-settings --save\n```\n\nor via npm (It will be saved to the package.json file)\n\n```bash\nnpm (install|uninstall) cordova-open-native-settings --save\n```\n\n## Using the plugin (opens Location Settings in Android and Application Settings in iOS)\n\n```\ncordova.plugins.settings.open(setting_constant, success_callback, failure_callback);\n```\n\n### Example for iOS and Android - open Wifi settings\n\n```js\nif (window.cordova && window.cordova.plugins.settings) {\n    console.log('openNativeSettingsTest is active');\n    window.cordova.plugins.settings.open(\"wifi\", function() {\n            console.log('opened settings');\n        },\n        function () {\n            console.log('failed to open settings');\n        }\n    );\n} else {\n    console.log('openNativeSettingsTest is not active!');\n}\n```\n\nIn Android, by default it is opened in the same application as a new activity, the hardware back button will bring the user back to the previous activity (the app). In order to open settings as a new application (two applications will appear in \"recent/opened\" apps list) the following code can be used:\n`window.cordova.plugins.settings.open([\"wifi\", true], function() {}, function() {}); ....`\n\n## Settings Options (Android)\n\nSetting constant | Description\n-----------------|------------\n\"accessibility\" | Show settings for accessibility modules\n\"account\" | Show add account screen for creating a new account\n\"airplane_mode\" | Show settings to allow entering/exiting airplane mode\n\"apn\" | Show settings to allow configuration of APNs\n\"application_details\" | Show screen of details about a particular application\n\"application_development\" | Show settings to allow configuration of application development-related settings\n\"application\" | Show settings to allow configuration of application-related settings\n\"battery_optimization\" | Show screen for controlling which apps can ignore battery optimizations\n\"biometric\" | Show screen for configuring biometric based device security\n\"bluetooth\" | Show settings to allow configuration of Bluetooth\n\"captioning\" | Show settings for video captioning\n\"cast\" | Show settings to allow configuration of cast endpoints\n\"data_roaming\" | Show settings for selection of 2G/3G\n\"date\" | Show settings to allow configuration of date and time\n\"display\" | Show settings to allow configuration of display\n\"dream\" | Show Daydream settings\n\"home\" | Show Home selection settings\n\"keyboard\" | Show settings to configure input methods, in particular allowing the user to enable input methods\n\"keyboard_subtype\" | Show settings to enable/disable input method subtypes\n\"locale\" | Show settings to allow configuration of locale\n\"location\" | Show settings to allow configuration of current location sources\n\"manage_all_applications\" | Show settings to manage all applications\n\"manage_applications\" | Show settings to manage installed applications\n\"memory_card\" | Show settings for memory card storage\n\"network\" | Show settings for selecting the network operator\n\"nfcsharing\" | Show NFC Sharing settings\n\"nfc_payment\" | Show NFC Tap & Pay settings\n\"nfc_settings\" | Show NFC settings\n\"notification_id\" | Settings > Notifications\n\"print\" | Show the top level print settings\n\"privacy\" | Show settings to allow configuration of privacy options\n\"quick_launch\" | Show settings to allow configuration of quick launch shortcuts\n\"search\" | Show settings for global search\n\"security\" | Show settings to allow configuration of security and location privacy\n\"settings\" | Show system settings\n\"show_regulatory_info\" | Show the regulatory information screen for the device\n\"sound\" | Show settings to a llow configuration of sound and volume\n\"storage\" | Show settings for internal storage\n\"store\" | Open the Play Store page of the current application\n\"sync\" | Show settings to allow configuration of sync settings\n\"usage\" | Show settings to control access to usage information\n\"user_dictionary\" | Show settings to manage the user input dictionary\n\"voice_input\" | Show settings to configure input methods, in particular allowing the user to enable input methods\n\"wifi_ip\" | Show settings to allow configuration of a static IP address for Wi-Fi\n\"wifi\" | Show settings to allow configuration of Wi-Fi\n\"wireless\" | Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks\n\n\n## Settings Options (iOS)\n\nSetting constant | Description\n-----------------|------------\n\"about\" | Settings > General > About\n\"accessibility\" | Settings > General > Accessibility\n\"account\" | Settings > _Your name_\n\"airplane_mode\" | Settings > Airplane Mode\n\"application_details\" | Settings\n\"autolock\" | Settings > General > Auto-Lock (before iOS 10)\n\"battery\" | Settings > Battery\n\"bluetooth\" | Settings > General > Bluetooth (before iOS 9)<br>Settings > Bluetooth (after iOS 9)\n\"browser\" | Settings > Safari\n\"castle\" | Settings > iCloud\n\"cellular_usage\" | Settings > General > Cellular Usage\n\"configuration_list\" | Settings > General > Profile\n\"date\" | Settings > General > Date & Time\n\"display\" | Settings > Display & Brightness\n\"do_not_disturb\" | Settings > Do Not Disturb\n\"facetime\" | Settings > Facetime\n\"keyboard\" | Settings > General > Keyboard\n\"keyboards\" | Settings > General > Keyboard > Keyboards\n\"locale\" | Settings > General > Language & Region\n\"location\" | Settings > Location Services (in older versions of iOS)\n\"locations\" | Settings > Privacy > Location Services (in newer versions of iOS)\n\"tracking\" | Settings > Privacy > Tracking (iOS 14+)\n\"mobile_data\" | Settings > Mobile Data (after iOS 10)\n\"music\" | Settings > iTunes\n\"music_equalizer\" | Settings > Music > EQ\n\"music_volume\" | Settings > Music > Volume Limit\n\"network\" | Settings > General > Network\n\"nike_ipod\" | Settings > Nike + iPod\n\"notes\" | Settings > Notes\n\"notification_id\" | Settings > Notifications\n\"passbook\" | Settings > Passbook & Apple Pay\n\"phone\" | Settings > Phone\n\"photos\" | Settings > Photo & Camera\n\"privacy\" | Settings > Privacy\n\"reset\" | Settings > General > Reset\n\"ringtone\" | Settings > Sounds > Ringtone\n\"search\" | Settings > General > Assistant (before iOS 10)<br>Settings > Siri (after iOS 10)\n\"settings\" | Settings > General\n\"sound\" | Settings > Sounds\n\"software_update\" | Settings > General > Software Update\n\"storage\" | Settings > iCloud > Storage & Backup\n\"store\" | Settings > iTunes & App Store\n\"tethering\" | Settings > Personal Hotspot\n\"touch\" | Settings > Touch ID & Passcode\n\"twitter\" | Settings > Twitter\n\"usage\" | Settings > General > Storage & iCloud Usage\n\"video\" | Settings > Video\n\"vpn\" | Settings > General > VPN\n\"wallpaper\" | Settings > Wallpaper\n\"wifi\" | Settings > WIFI\n\n## Notes\n* Android plugin based on the following information: https://developer.android.com/reference/android/provider/Settings.html#ACTION_DREAM_SETTINGS\n* iOS plugin based on the following information: https://gist.github.com/phynet/471089a51b8f940f0fb4\n* In iOS, this plugin generates a URL scheme for the *-Info.plist configurations file.\n* The plugin for Android is based on the forked repository and was refactored. The iOS part was built from skretch.\n\n## License\n```\nThe MIT License\n\nCopyright (c) 2016 Guy Rombaut\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","readmeFilename":"README.md","_rev":"1-456c9297772ca96e42a658d249b83975"}