Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

202
Visualizações
electron JS - node-notifier: Can not listen to the event when set appID

On window.

Before starting, set actions for it.

notifier.notify({
  title: 'My notification',
  message: 'Hello, there!',
  actions: ["ok","cancel"]
});

notifier.on('ok', function (notifierObject, options, event) {
  // Triggers click ok
});

notifier.on('cancel', function (notifierObject, options, event) {
  // Triggers click cancel
});


Case 1: appID = undefined => node-notifier is displayed and listen event work

  • but it is in the snore toast group. not my app.

Case 2: appID = my.app.id => node-notifier is displayed and it display is in my app group

  • but listen event not work

In my case, I want to set appID = my App ID to show my app group and listen to event work.

note: I have read the source code of node-notifier:

It passes property to SnoreToast.exe and executes it. If set appID for it, Emit Event will not work, I think so.

refer issue: https://github.com/mikaelbr/node-notifier/issues/408

If anyone have solution, plz help me. Thanks all

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda