cordova-plugin-android-notification-manager

0.0.1 • Public • Published

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

Notification Channel Settings

From the manager

NotificationManager.openNotificationChannelSettings('channel_id')
    .then(console.info)
    .catch(console.error);
    
// OK

From a channel

NotificationManager.getNotificationChannel('channel_id')
    .then(function(channel) {
        channel.openSettings().
            .then(console.info)
            .catch(console.error);
    })
    .catch(console.error);
    
// OK

Open an app notification settings

Notification Channel Settings

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

Package Sidebar

Install

npm i cordova-plugin-android-notification-manager

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

88.7 kB

Total Files

8

Last publish

Collaborators

  • sharupoff