Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
121
rated 0 times [  124] [ 3]  / answers: 1 / hits: 19118  / 9 Years ago, fri, july 24, 2015, 12:00:00

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?


More From » electron

 Answers
21

The notification API doesn't work on Windows, because there is no notification API that works on all versions of Windows (really Win10 is the first version where desktops have a documented API for it, Win8.x had it but it was WinRT-only)


[#65692] Wednesday, July 22, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emiliano

Total Points: 381
Total Questions: 109
Total Answers: 93

Location: Jersey
Member since Fri, Oct 1, 2021
3 Years ago
emiliano questions
;