node-notifier icon indicating copy to clipboard operation
node-notifier copied to clipboard

Actions in Windows 10 notifications

Open chris-kostiw opened this issue 8 years ago • 8 comments

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.

chris-kostiw avatar Aug 17 '17 15:08 chris-kostiw

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.

mikaelbr avatar Jan 13 '18 21:01 mikaelbr

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.

hufftheweevil avatar Jun 25 '18 18:06 hufftheweevil

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.

mikaelbr avatar Jun 25 '18 18:06 mikaelbr

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

yoavain avatar Oct 26 '19 07:10 yoavain

PR: https://github.com/mikaelbr/node-notifier/pull/293

yoavain avatar Nov 01 '19 04:11 yoavain

Hello Yoavain is this issue resolved ? I want to use Action buttons in electron that must be windows 10 compatible

guruusingh2033 avatar Nov 29 '19 05:11 guruusingh2033

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

yoavain avatar Nov 29 '19 06:11 yoavain

Here is a guide on how to fix Action buttons + appID not having output: https://github.com/mikaelbr/node-notifier/issues/424

Araxeus avatar Jan 07 '23 03:01 Araxeus