Using Notification API for Electron App

Jo E. picture Jo E. · Jul 24, 2015 · Viewed 16.1k times · Source

How to implement Notification API on Electron App?

I tried checking Notification.permission and it returns granted

But when I try to run:

new Notification("FOO", {body:"FOOOOOOOOOOOOOOOOOOOOOOOOO"});

nothing happens. Is it even supported?

Answer

Wilson Mendes picture Wilson Mendes · Jan 14, 2016

A good approach is use node-notifier for notifications, because the package have cross-platform notification support