cordova-notification-listener
v0.0.18
Published
Notification listener Cordova Plugin for Android
Downloads
4
Maintainers
Readme
USO:
cordova.plugins.NotificationListener.listen((notifications) => {
console.log(notifications);
}, (e) => {
console.log(e)
});
cordova.plugins.NotificationListener.hasPermission((permission) => {
console.log(permission);
}, (e) => {
console.log(e);
});
cordova.plugins.NotificationListener.launchPermission((launch) => {
console.log(launch);
}, (e) => {
console.log(e);
});
cordova.plugins.NotificationListener.getNotifications((notifications) => {
console.log(notifications);
}, (e) => {
console.log(e);
});
cordova.plugins.NotificationListener.sendAction({ index: 0, action: 1 });