cordova-plugin-android-notification-manager
v0.0.1
Published
Manage android notification channels in cordova application
Downloads
20
Maintainers
Readme
Usage
Get a notification channel
NotificationManager.getNotificationChannel('channel_id')
.then(console.info)
.catch(console.error);
// NotificationChannel {id: "channel_id", importance: 5, lightColor: 0, lockscreenVisibility: -1000, openSettings: ƒ, …}Open a notification channel settings

From the manager
NotificationManager.openNotificationChannelSettings('channel_id')
.then(console.info)
.catch(console.error);
// OKFrom a channel
NotificationManager.getNotificationChannel('channel_id')
.then(function(channel) {
channel.openSettings().
.then(console.info)
.catch(console.error);
})
.catch(console.error);
// OKOpen an app notification settings

NotificationManager.openAppNotificationSettings()
.then(console.info)
.catch(console.error);
// OK