Notifications API click event not firing from windows 10 action center
Notifications API click event is firing when the notification is in foreground on windows 10. But if you click on the notification from windows 10 action center, the click event is not firing. But this works on both chrome and edge. Can some body help me on this ?
You can paste the below code in the console to trigger a notification. var notification = new Notification("Hi! ", {tag: 'Notification'}); notification .onclick = function(event) {
console.log('clicked');
} ;
Notifications API click event is firing when the notification is in foreground on windows 10. But if you click on the notification from windows 10 action center, the click event is not firing. But this works on both chrome and edge. Can some body help me on this ?
You can paste the below code in the console to trigger a notification.
var notification = new Notification("Hi! ", {tag: 'Notification'});
notification .onclick = function(event) {
console.log('clicked');
} ;