question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use both - 'appID' and 'actions' parameters at the same time

See original GitHub issue

Hi 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:open
  • Created 3 years ago
  • Reactions:11
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
amt-workcommented, Apr 20, 2020

@Denchijik I’m also having this issue.

3reactions
Zytekaroncommented, Jan 14, 2021

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.

cd node_modules\node-notifier\vendor\snoreToast
snoretoast-x86.exe -install "SnoreToast/<Program Name>.lnk" "" "AppName.UNIQUE_ID"

<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 simply AppName.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" })

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to register bundle identifi… | Apple Developer Forums
I managed to resolve this issue by updating the bundle identifier to something unique like com.example.myapp to com.example.myapp2021 within the general tab.
Read more >
Open apps, forms, views, dialogs, and reports with a URL
You can use either the appname or appid query parameters with the Unique Name or AppModuleId values respectively, but you cannot use both...
Read more >
Unable to get provider com.google.android.gms.ads ...
This happened due to updated AdMob SDK. Now you need to add appID in your manifest file. <application> .
Read more >
Remote Config Parameters and Conditions - Firebase - Google
Platform, == iOS. Android Web ; Operating system, == Specify the operating system(s) to target. Before using this rule, you must use an...
Read more >
App ID Management | IBM Cloud API Docs
App ID supports region-specific endpoint URLs that you can use to interact ... was unsuccessful, often due to a missing required parameter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found