@elgg/cordova-plugin-app-settings
v1.0.2
Published
Plugin para abrir la configuración de la app
Maintainers
Readme
cordova-plugin-app-settings
Simple Cordova plugin to open the app settings and, on Android, also open the notification settings directly. Designed for developers who need a lightweight solution, with room for future expansion.
Installation
Install from a local path
- Download or clone this repository.
- Run the following command inside your Cordova project:
cordova plugin add <plugin-path>Example:
cordova plugin add ../../cordova-plugin-app-settingsInstall from npm
- Run the following command inside your Cordova project:
cordova plugin add @elgg/cordova-plugin-app-settingsUsage
Once running in a Cordova environment, the plugin is available via the global AppSettings object.
Currently, the plugin provides two methods:
open (Android & iOS)
Opens the application settings.
Example:
AppSettings.open(
() => console.log("Settings opened."),
(err) => console.error("Error opening settings: ", err)
);openNotifications (Android only)
Opens the app's notification settings directly.
Example:
AppSettings.openNotifications(
() => console.log("Notification settings opened."),
(err) => console.error("Error opening notification settings:", err)
);Notes:
- Android 8 and above: Opens the app’s notification settings.
- Android 5 to 7: Opens the app’s notification settings using a non-official workaround.
- Android < 5: Open app settings like the open method.
