node-notifier
node-notifier copied to clipboard
Actions in Windows 10 notifications
Is there any way to add actions (buttons) to Windows 10 notifications with node-notifier? I'm using node-notifier to create OS X notifications with actions, and I'd like to do the same for Windows.
Right now, I have to use electron-windows-notifications to create notifications that include actions, and I'd prefer to use node-notifier for both platforms.
Hm. It would require a new implementation of toasts that supports it. That might be something that is in the horizon, but it's in the long run. But I've been playing with the idea of doing a pure JavaScript implementation of toasts and use that as a dependency (much like electron-windows-notifications, but without the electron-part). When I started this project, UWP and Windows and JavaScript wasn't the same as it was now I think.
Is there any progress on this feature? I'm also looking to have actions in toaster notifications. I see there are a lot of forks for this project, but I don't see any that support actions.
This is not something I'm actively working on as of now. But if someone wants to claim it I am more than happy to help get it merged.
I will try to help on this one, since I also would like to have this feature. SnoreToast supports passing buttons since version 0.6.0. If I manage to implement it, I'll open a PR
PR: https://github.com/mikaelbr/node-notifier/pull/293
Hello Yoavain is this issue resolved ? I want to use Action buttons in electron that must be windows 10 compatible
Hello Yoavain is this issue resolved ? I want to use Action buttons in electron that must be windows 10 compatible
The code is merged, but no new official release yet. If you must get the new features now, you can build the project yourself. Or, you can take my build from here (will be removed once an official build is released): https://github.com/yoavain/screwzira-subtitle-downloader/tree/master/bin/node-notifier
Here is a guide on how to fix Action buttons + appID not having output: https://github.com/mikaelbr/node-notifier/issues/424