node-notifier
node-notifier copied to clipboard
Hold Notifications in Windows 10 Notification Center
Hey,
on Windows 10, notifications are shows for some seconds. Afterwards they disappear.
It would be helpful that notifications stay in Windows notification center and are not removed after showing them.
Is this currently possible?
You can set the option wait: true
, which will keep the notification there until the user clicks it. You can also set a callback function to do something after the user clicks it:
notifier.notify({
title: 'mytitle',
message: 'mymessage',
icon: path.join('', '/image.png'),
sound: false,
wait: true
}, function(err, response) {
//your callback code
});
Hm, I'm using YakYak which uses node-notifier. See here:
https://github.com/yakyak/yakyak/blob/master/src/ui/views/notifications.coffee#L80
Wait is already set to true, but notifications still disappear after some seconds. (Windows 10)
Also happens with me, even setting wait: true
on Windows 10.
I have the same problem. Running Windows 10 too.
same here, Win 10 too
-edit: I managed to "fix" that, check https://github.com/electron/electron/issues/3916#issuecomment-250439021
same after wait:true
This should definitely be an option rather than being hard-coded. Cases where a notification exists, for example, to alert the user to get up and stretch every 20 minutes, start to get quite spammy if they persist in the notification centre.
i have the same problem, i set "show notification in the action center" but the callback is not responding, the same code works fine in mac
i've got the same problem on both operating systems (windows 10 and mac). when the timeout is triggered then the notification is destroyed and the message in the notification center is removed. where is the problem?
somebody manage to solve this problem?