Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

Notifications API click event not firing from windows 10 action center

  • Ingen svar
  • 1 har dette problem
  • 8 visninger
more options

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'); } ;