Preflight Checklist
Electron Version
12^
Operating System Version
Windows 10 v19042
What arch are you using?
x64
Last Known Working Electron version
11 downwards
Expected Behavior (Electron 11 and older)
notifications would close after timeout, not appearing the windows 10 notification center. (and thus not duplicating)
In the gist with v11 you can see it logs "notification closed" when it timeout
Actual Behavior (Electron 12 and newer)
After the notification timeout - it moves to the notification center without closing and also can't be closed programmatically
(notification.close doesn't do anything IF it has already timeout and moved to notification center)
which can result in a spam of notifications in notification center
In the gist with v12/13 you can see the notification doesn't close on timeout + oldNotification.close() only works if the old notification hasn't timed out yet
Testcase Gist URL
https://gist.github.com/a1c1ac4c057370540be18e0b5aeefb89
Additional Information
I found no documentation or breaking change that indicate any modifications in notification API
reported at pear-devs/pear-desktop#312
tested by me on multiple versions of electron 11, 12 and 13 - including latest releases
if this doesn't get directly fixed - there should atleast be an option "close on timeout" that allows using that functionality and avoid spamming the notification center
Preflight Checklist
Electron Version
12^
Operating System Version
Windows 10 v19042
What arch are you using?
x64
Last Known Working Electron version
11 downwards
Expected Behavior (Electron 11 and older)
notifications would close after timeout, not appearing the windows 10 notification center. (and thus not duplicating)
Actual Behavior (Electron 12 and newer)
After the notification timeout - it moves to the notification center without closing and also can't be closed programmatically
(notification.close doesn't do anything IF it has already timeout and moved to notification center)
which can result in a spam of notifications in notification center
Testcase Gist URL
https://gist.github.com/a1c1ac4c057370540be18e0b5aeefb89
Additional Information
I found no documentation or breaking change that indicate any modifications in notification API
reported at pear-devs/pear-desktop#312
tested by me on multiple versions of electron 11, 12 and 13 - including latest releases
if this doesn't get directly fixed - there should atleast be an option "close on timeout" that allows using that functionality and avoid spamming the notification center