actions are not working.
Closed this issue · 1 comments
balya7777 commented
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
github-actions commented
There has been no recent activity and this issue has been marked inactive.