<p dir="auto">Hello,</p>
<p dir="auto">I've been creating notifications with <a href="https://github.com/electron/electron/blob/master/docs/tutorial/desktop-environment-integration.md#notifications-windows-linux-macos">https://github.com/electron/electron/blob/master/docs/tutorial/desktop-environment-integration.md#notifications-windows-linux-macos</a></p>
<p dir="auto">Can someone please confirm what I suspect:</p>
<ul dir="auto">
<li>There is no way to bind some kind of click handler to a notification, all clicking ever does it close the notification</li>
<li>There is no way to add actions/buttons to a notification.</li>
</ul>
<p dir="auto">If these are true then I think as they stand, notifications are not very useful. If this functionality is not possible to implement, maybe it would be better to provide a standardised BrowserWindow implementation?</p>
<p dir="auto">As an aside - can anyone recommend a third party package for implementing cross-platform rich notifications?</p>
<p dir="auto">Thanks!</p>
<p dir="auto">It would be really great if Electron supported the "notification actions" feature added in Chrome 48:</p>
<p dir="auto"><a href="https://www.chromestatus.com/features/5906566364528640" rel="nofollow">https://www.chromestatus.com/features/5906566364528640</a><br>
<a href="https://developers.google.com/web/updates/2016/01/notification-actions?hl=en" rel="nofollow">https://developers.google.com/web/updates/2016/01/notification-actions?hl=en</a></p>
<p dir="auto">Essentially, you say:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="new Notification(&quot;123&quot;, {title: &quot;123&quot;, silent: true, actions: [{action: 'A', title: 'A'}, {action: 'B', title: 'B'}]})"><pre class="notranslate"><code class="notranslate">new Notification("123", {title: "123", silent: true, actions: [{action: 'A', title: 'A'}, {action: 'B', title: 'B'}]})
</code></pre></div>
<p dir="auto">To show the notification, and then listen for 'notificationclick' DOM event, which gives you the name of the chosen action.</p>