You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Capacitor plugin to open native settings screens for Android and iOS.
Plugin versions
Capacitor version
Plugin version
v6
>= v6.0.0
v5
>= v5.0.0
v4
>= v4.0.0
v3
<= v2.0.1
Install
npm install capacitor-native-settings
npx cap sync
Example
import{NativeSettings,AndroidSettings,IOSSettings}from'capacitor-native-settings';/** * Note that the only supported option by Apple is "App". * Using other options might break in future iOS versions * or have your app rejected from the App Store. */NativeSettings.open({optionAndroid: AndroidSettings.ApplicationDetails,optionIOS: IOSSettings.App})NativeSettings.openAndroid({option: AndroidSettings.ApplicationDetails,});/** * Note that the only supported option by Apple is "App". * Using other options might break in future iOS versions * or have your app rejected from the App Store. */NativeSettings.openIOS({option: IOSSettings.App,});
Opens the specified options on android & ios.
Note that the only supported option by Apple is "App". Using other options
might break in future iOS versions or have your app rejected in the App Store.
Opens the specified option in android.
Only use this if you have made sure the user is on android.
This can be done by checking the platform before hand.
Opens the specified option on iOS.
Only use this if you have made sure the user is on iOS.
This can be done by checking the platform before hand.
Note that the only supported option by Apple is "App". Using other options
might break in future iOS versions or have your app rejected in the App Store.