Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Notification API for Electron App

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?

like image 644
Jo E. Avatar asked Jul 24 '15 09:07

Jo E.


1 Answers

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

like image 127
Wilson Mendes Avatar answered Oct 17 '22 01:10

Wilson Mendes