1.0.1 • Published 9 years ago

nativesettingsopener v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

#NativeSettings plugin for Android and iOS 8 Cordova.

The plugin allow you to open Location Settings view from Android Cordova application and to open Native App settings view from iOS 8 Cordova application. Based on https://github.com/raulduran/VideoPlayer.

#Adding the Plugin to your project

cordova plugin add https://github.com/deefactorial/Cordova-open-native-settings.git

#Removing the Plugin to your project

cordova plugin rm com.phonegap.plugins.nativesettingsopener

#Using the plugin

cordova.plugins.settings.open(success_callback,failure_callback);

#Android Settings

Select one of the options below for the param settingName

var settingNames = array(
    "open",
    "accessibility",
    "add_account",
    "airplane_mode",
    "apn",
    "application_details",
    "application_development",
    "application",
    "bluetooth",
    "captioning",
    "cast",
    "data_roaming",
    "date",
    "device_info",
    "display",
    "dream",
    "home",
    "input_method",
    "input_method_subtype",
    "internal_storage",
    "locale",
    "location_source",
    "manage_all_applications",
    "manage_applications",
    "memory_card",
    "network_operator",
    "nfcsharing",
    "nfc_payment",
    "nfc_settings",
    "print",
    "privacy",
    "quick_launch",
    "search",
    "security",
    "settings",
    "show_regulatory_info",
    "sound",
    "sync",
    "usage_access",
    "user_dictionary",
    "voice_input",
    "wifi_ip",
    "wifi",
    "wireless");
cordova.plugins.settings.openSetting(settingName, success_callback,failure_callback);

#example

if(typeof cordova.plugins.settings.openSetting != undefined)
    cordova.plugins.settings.openSetting("nfc_settings", function(){console.log("opened nfc settings")},function(){console.log("failed to open nfc settings")});