Can't use both - 'appID' and 'actions' parameters at the same time
See original GitHub issueHi guys! I was trying to make notifications with buttons on windows 10 (v1909) using this code:
notifier.notify( { title: 'title', message: 'message', icon: paths.appIconPath, actions: ['Close', 'Settings'], });
It worked, but I noticed that there is always a ‘SnoreToast’ message at the bottom of the notification. After some googling, I found that to hide this message I need to also provide an ‘appID’ parameter to the notify function. But when I provide it, the buttons disseaper. This code should possibly work, but it doesnt’t:
notifier.notify( { title: 'title', message: 'message', icon: paths.appIconPath, actions: ['Close', 'Settings'], appID: 'SomeAppId' });
Am I missing something?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:11 (3 by maintainers)
@Denchijik I’m also having this issue.
SnoreToast requires you to register an application to make this work. Here is a function you can try to use to register programs in Node.js, though it doesn’t always work – it will give you a command to use, though, that should. The process is described below.
<Program Name>
is the name you want to display in the notification instead of SnoreToast. Be sure to leave.lnk
on the end. The middle argument is for a program executable, but it can be left blank. The last argument is the application id you will use later. The format is simplyAppName.UNIQUE_ID
. This will create a program in your Start Menu -> SnoreToast folder, which will then allow you to use actions.Remember to set the
appID
in the notifier to app id you used above instead of using the name of the app (example:{ appID: "SomeApp.ID_HERE" }
)