title: How can I listen click event on Windows notifications?
body: <p>I'm simply send notifications using the <a href="https://github.com/mikaelbr/node-notifier#usage-notificationcenter" rel="noreferrer">node-notifier</a> package. Also, when I click on the notification, it has to go to a link. But I can't listen the click event. The events provided by the package do nothing. This is my code: </p>
  
  <pre class="lang-js prettyprint-override"><code>const notifier = require("node-notifier");
  const open = require("open");
  
  notifier.notify({
    title: "Stackoverflow",
    message: "A message",
    wait: true,
    open: "https://stackoverflow.com/",
  });
  
  notifier.on("click", function (notifierObject, options, event) {
    open("https://sindresorhus.com");
  });
  </code></pre>
  
  
  
  <p>And this is my notification:</p>
  
  <p><a href="https://i.stack.imgur.com/xH9CZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xH9CZ.png" alt="enter image description here"></a></p>
  
  <p>I can use any other package. I just want to listen click event.</p>
  
  <p>@user120242's answer works but does not works clicking after the notification disappears. Is there any way? I added a <a href="https://i.imgur.com/hFPn1R6.mp4" rel="noreferrer">gif</a>.</p>