@capawesome/capacitor-settings-launcher

中文文档
0.1.2发布于 2026/09/02MITTypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 6万

Capacitor plugin to open native settings screens on Android and iOS.

原始使用文档
文档目录32 节
  1. Features
  2. Use Cases
  3. Compatibility
  4. Installation
  5. Android
  6. iOS
  7. Configuration
  8. Usage
  9. Open the settings screen of your app
  10. Open the notification settings of your app
  11. Open an Android system settings screen
  12. API
  13. openAndroidSettings(...)
  14. openAppSettings()
  15. openNotificationSettings()
  16. Interfaces
  17. Enums
  18. Migrating from capacitor-native-settings
  19. iOS and the App-Prefs: URL scheme
  20. FAQ
  21. How is this plugin different from other similar plugins?
  22. How can I guide users to grant a previously denied permissi…
  23. How does this plugin work with the Permissions plugin?
  24. Why can't I open specific iOS settings sections like Wi-Fi …
  25. Why does openNotificationSettings reject on iOS?
  26. Which Android settings screens can I open?
  27. How do I migrate from capacitor-native-settings ?
  28. Can I use this plugin with Ionic, React, Vue or Angular?
  29. Related Plugins
  30. Newsletter
  31. Changelog
  32. License

Capacitor Settings Launcher Plugin

Capacitor plugin to open native settings screens.

Features

  • ⚙️ App settings: Open the settings screen of your app to guide users to grant a denied permission.
  • 🔔 Notification settings: Open the notification settings screen of your app.
  • 🤖 Android settings: Open a large catalog of Android system settings screens.
  • 🔒 App Store safe: Uses only official platform APIs — no private URL schemes.
  • 🤝 Compatibility: Works alongside the App Language and Android Battery Optimization plugins.
  • 📦 CocoaPods & SPM: Supports CocoaPods and Swift Package Manager for iOS.
  • 🔁 Up-to-date: Always supports the latest Capacitor version.

Missing a feature? Just open an issue and we'll take a look!

Use Cases

The Settings Launcher plugin is typically used to guide users to the right system settings screen, for example:

  • Permission recovery: Open your app's settings screen so users can grant a previously denied permission.
  • Notification opt-in: Guide users to your app's notification settings when notifications are disabled.
  • Connectivity troubleshooting: Open the Wi-Fi, Bluetooth, or airplane mode settings on Android when your app requires a connection.
  • Onboarding flows: Send users to Android settings screens such as locale, location, or NFC to enable features your app depends on.

Compatibility

Plugin VersionCapacitor VersionStatus
0.x.x>=8.x.xActive support

Installation

You can use our AI-Assisted Setup to install the plugin. Add the Capawesome Skills to your AI tool using the following command:

npx skills add capawesome-team/skills --skill capacitor-plugins

Then use the following prompt:

 Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-settings-launcher` plugin in my project.

If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:

npm install @capawesome/capacitor-settings-launcher
npx cap sync

Android

No additional configuration is required for this plugin.

iOS

The openNotificationSettings(...) method requires iOS 16 or later. On older versions, the call rejects as unavailable.

Configuration

No configuration required for this plugin.

Usage

The following examples show how to open your app's settings screen, open your app's notification settings, and open an Android system settings screen.

Open the settings screen of your app

Open your app's settings screen, for example to guide users to grant a previously denied permission. Only available on Android and iOS:

import { SettingsLauncher } from '@capawesome/capacitor-settings-launcher';

const openAppSettings = async () => {
  await SettingsLauncher.openAppSettings();
};

Open the notification settings of your app

Open your app's notification settings screen, for example when the user has disabled notifications. On iOS, this method requires iOS 16 or later and rejects on older versions. Only available on Android and iOS:

import { SettingsLauncher } from '@capawesome/capacitor-settings-launcher';

const openNotificationSettings = async () => {
  await SettingsLauncher.openNotificationSettings();
};

Open an Android system settings screen

Use the AndroidSettingsPage enum to open one of the many supported Android system settings screens, such as Wi-Fi, Bluetooth, or location. Only available on Android:

import { SettingsLauncher, AndroidSettingsPage } from '@capawesome/capacitor-settings-launcher';

const openAndroidSettings = async () => {
  await SettingsLauncher.openAndroidSettings({
    page: AndroidSettingsPage.Wifi,
  });
};

API

openAndroidSettings(...)

openAndroidSettings(options: OpenAndroidSettingsOptions) => Promise<void>

Open a specific Android system settings screen.

Only available on Android.

ParamType
optionsOpenAndroidSettingsOptions

Since: 0.1.0


openAppSettings()

openAppSettings() => Promise<void>

Open the settings screen of your app.

This is the recommended way to guide users to grant a previously denied permission.

Only available on Android and iOS.

Since: 0.1.0


openNotificationSettings()

openNotificationSettings() => Promise<void>

Open the notification settings screen of your app.

On iOS, this method requires iOS 16 or later and rejects on older versions.

Only available on Android and iOS.

Since: 0.1.0


Interfaces

OpenAndroidSettingsOptions

PropTypeDescriptionSince
pageAndroidSettingsPageThe Android system settings screen to open.0.1.0

Enums

AndroidSettingsPage

MembersValueDescriptionSince
Accessibility'ACCESSIBILITY'Show settings for accessibility modules.0.1.0
AirplaneMode'AIRPLANE_MODE'Show settings to allow entering/exiting airplane mode.0.1.0
Apn'APN'Show settings to allow configuration of APNs.0.1.0
BatterySaver'BATTERY_SAVER'Show settings to allow configuration of battery saver mode.0.1.0
Bluetooth'BLUETOOTH'Show settings to allow configuration of Bluetooth.0.1.0
Captioning'CAPTIONING'Show settings for video captioning.0.1.0
CastSettings'CAST_SETTINGS'Show settings to allow configuration of cast endpoints.0.1.0
DataRoaming'DATA_ROAMING'Show settings for selection of 2G/3G.0.1.0
Date'DATE'Show settings to allow configuration of date and time.0.1.0
Development'DEVELOPMENT'Show settings to allow configuration of application development settings.0.1.0
DeviceInfo'DEVICE_INFO'Show general device information settings (serial number, software version, phone number, etc.).0.1.0
Display'DISPLAY'Show settings to allow configuration of display.0.1.0
Dream'DREAM'Show Daydream settings.0.1.0
Home'HOME'Show settings for selecting the default home app.0.1.0
IgnoreBatteryOptimization'IGNORE_BATTERY_OPTIMIZATION'Show screen for controlling which apps can ignore battery optimizations.0.1.0
InputMethod'INPUT_METHOD'Show settings to configure input methods, in particular allowing the user to enable input methods.0.1.0
InternalStorage'INTERNAL_STORAGE'Show settings for internal storage.0.1.0
Locale'LOCALE'Show settings to allow configuration of locale.0.1.0
Location'LOCATION'Show settings to allow configuration of current location sources.0.1.0
ManageAllApplications'MANAGE_ALL_APPLICATIONS'Show settings to manage all applications.0.1.0
ManageApplications'MANAGE_APPLICATIONS'Show settings to manage installed applications.0.1.0
MemoryCard'MEMORY_CARD'Show settings for memory card storage.0.1.0
Network'NETWORK'Show settings for selecting the network operator.0.1.0
Nfc'NFC'Show settings to allow configuration of NFC.0.1.0
NfcPayment'NFC_PAYMENT'Show settings to allow configuration of tap and pay.0.1.0
NotificationListener'NOTIFICATION_LISTENER'Show settings for managing which apps have access to notification listener services.0.1.0
Printing'PRINTING'Show settings for printing.0.1.0
Privacy'PRIVACY'Show settings to allow configuration of privacy options.0.1.0
Search'SEARCH'Show settings to allow configuration of search.0.1.0
Security'SECURITY'Show settings to allow configuration of security and location privacy.0.1.0
Sound'SOUND'Show settings to allow configuration of sound and volume.0.1.0
Sync'SYNC'Show settings to allow configuration of sync settings.0.1.0
Usage'USAGE'Show screen for controlling which apps can access usage statistics.0.1.0
UserDictionary'USER_DICTIONARY'Show settings to manage the user input dictionary.0.1.0
VoiceInput'VOICE_INPUT'Show settings to configure input methods, in particular allowing the user to enable voice input services.0.1.0
Vpn'VPN'Show settings to allow configuration of VPN.0.1.0
Wifi'WIFI'Show settings to allow configuration of Wi-Fi.0.1.0
Wireless'WIRELESS'Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and mobile networks.0.1.0

Migrating from capacitor-native-settings

This plugin replaces the single open(...) method of capacitor-native-settings with three explicit methods. Instead of passing an optionAndroid and optionIOS to a single method, call the method that matches your intent:

capacitor-native-settingsSettings Launcher
open({ optionAndroid: 'application_details', optionIOS: 'App' })openAppSettings()
open({ optionAndroid: 'app_notification', optionIOS: 'App' })openNotificationSettings()
open({ optionAndroid: '<page>', optionIOS: '...' })openAndroidSettings({ page: '<page>' })

On iOS, openAppSettings() and openNotificationSettings() cover the officially supported destinations. The various optionIOS deep links into specific iOS settings sections are intentionally not supported (see below).

iOS and the App-Prefs: URL scheme

This plugin deliberately does not provide deep links into specific iOS system settings sections (e.g. Wi-Fi, Bluetooth, Location). Those links rely on the private App-Prefs: URL scheme, which is not part of the public iOS API. Apps that use it risk rejection during App Store review, and Apple may break it without notice between iOS releases.

Instead, this plugin only uses official Apple APIs: UIApplication.openSettingsURLString (your app's settings) and openNotificationSettingsURLString (your app's notification settings, iOS 16+). This is a deliberate design decision to keep your app App Store safe.

FAQ

How is this plugin different from other similar plugins?

It opens native settings screens through three explicit, fully typed methods — your app's settings, your app's notification settings, and a large catalog of Android system screens such as Wi-Fi, Bluetooth, and location — so each call clearly matches your intent. It relies only on official Apple and Android APIs and deliberately avoids the private App-Prefs: URL scheme, which keeps your app App Store safe. Actively maintained against the latest Capacitor version, it is built to guide users to exactly the right settings screen on Android and iOS.

How can I guide users to grant a previously denied permission?

Call the openAppSettings method to open the settings screen of your app. This is the recommended way to let users grant a permission that they previously denied, since neither Android nor iOS shows the permission prompt again after a denial. See the usage example above.

How does this plugin work with the Permissions plugin?

Use the Permissions plugin's checkPermissions() method to detect a denied permission state, then call openAppSettings() from this plugin to send the user straight to your app's settings screen to grant it manually. The two plugins are commonly used together for this check-then-recover flow.

Why can't I open specific iOS settings sections like Wi-Fi or Bluetooth?

Deep links into specific iOS system settings sections rely on the private App-Prefs: URL scheme, which is not part of the public iOS API. Apps that use it risk rejection during App Store review, and Apple may break it without notice between iOS releases. This plugin deliberately only uses official Apple APIs to keep your app App Store safe (see iOS and the App-Prefs: URL scheme).

Why does openNotificationSettings reject on iOS?

The openNotificationSettings(...) method requires iOS 16 or later. On older iOS versions, the call rejects as unavailable. The openAppSettings() method works on all supported iOS versions and also gives users access to the notification settings of your app.

Which Android settings screens can I open?

The openAndroidSettings(...) method supports a large catalog of Android system settings screens, including Wi-Fi, Bluetooth, location, locale, NFC, display, sound, and many more. See the AndroidSettingsPage enum in the API reference for the complete list. This method is only available on Android.

How do I migrate from capacitor-native-settings?

This plugin replaces the single open(...) method of capacitor-native-settings with three explicit methods: openAppSettings(), openNotificationSettings() and openAndroidSettings(...). See the migration guide above for a mapping table.

Can I use this plugin with Ionic, React, Vue or Angular?

Yes, the plugin is framework-agnostic. It works in any Capacitor app regardless of the web framework, including Ionic with Angular, React, or Vue, as well as plain JavaScript projects.

Newsletter

Stay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our Capawesome Newsletter.

Changelog

See CHANGELOG.md.

License

See LICENSE.

版本与发布记录

@capawesome/capacitor-settings-launcher 共发布 4 个版本,首次发布于 2026/07/07;过去 12 个月发布了 4 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.2latest2026/09/022 个月前
0.1.12026/07/153 个月前
0.1.02026/07/143 个月前
0.0.12026/07/074 个月前

关于 @capawesome/capacitor-settings-launcher 的常见问题

@capawesome/capacitor-settings-launcher 是什么?

Capacitor plugin to open native settings screens on Android and iOS.

如何安装 @capawesome/capacitor-settings-launcher?

在项目目录运行 npm install @capawesome/capacitor-settings-launcher,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@capacitor/core(>=8.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@capawesome/capacitor-settings-launcher 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@capawesome/capacitor-settings-launcher 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@capawesome/capacitor-settings-launcher 可以商用吗?

@capawesome/capacitor-settings-launcher 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@capawesome/capacitor-settings-launcher 的下载量有多少?

根据 npm 官方下载统计,@capawesome/capacitor-settings-launcher 在 2026/10/09 – 2026/11/07 这 30 天内被下载 59,990 次,日均约 2,000 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@capawesome/capacitor-settings-launcher 还在维护吗?

最新版本 0.1.2 发布于 2026/09/02(2 个月前);至今共发布 4 个版本,其中过去 12 个月发布了 4 个;首次发布于 2026/07/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。