danielsogl/awesome-cordova-plugins

actions are not working.

Closed this issue · 1 comments

CordovaLocalNotifications.schedule({
id: new Date().getTime(),
title: notification.data.title,
text: notification.data.body,
progressBar: { value: parseInt(notification.data.body!.slice(0, -1)), maxValue: 100 },
actions: [
{ id: 'yes', title: 'Yes' },
{ id: 'no', title: 'No' }
],
});

CordovaLocalNotifications.on('yes').subscribe((notification: any) => {
console.log('Notification clicked:', notification);
alert(JSON.stringify(notification));
});
CordovaLocalNotifications.on('no').subscribe((notification: any) => {
console.log('Notification clicked:', notification);
alert(JSON.stringify(notification));
});

the app doesn't show alert

There has been no recent activity and this issue has been marked inactive.