Questions tagged [node-notifier]

Use for questions regarding use of the Node.js "notifier" module for sending cross platform system notifications.

A Node.js module for sending cross platform system notifications. Using Notification Center for Mac, notify-osd/libnotify-bin for Linux, Toasters for Windows 8/10, or taskbar Balloons for earlier Windows versions. If none of these requirements are met, Growl is used.

See the Git repository or NPM page pages for more information.

27 questions
12
votes
1 answer

How can I listen click event on Windows notifications?

I'm simply send notifications using the node-notifier package. Also, when I click on the notification, it has to go to a link. But I can't listen the click event. The events provided by the package do nothing. This is my code: const notifier =…
doğukan
  • 23,073
  • 13
  • 57
  • 69
7
votes
2 answers

Testing mail-notifier in nodejs using jest

Does anyone know how to test mail-notifier module in nodejs? I want to test the logic inside n.on(): const notifier = require('mail-notifier'); const imap = { user: 'mailId', password: 'password', host: 'host', port: 'port', tls: true, …
Tony Mathew
  • 880
  • 1
  • 12
  • 35
6
votes
1 answer

Enable Sticky Behaviour of Electron App Notifications on Windows Platform

I want to achieve the sticky behaviour of notifications in the electron desktop application until the user clicks on the notification itself. I am using node-notifier to achieve this behaviour following this documentaion and using ngx-electron to…
4
votes
1 answer

Windows Notification from node service from electron

I can send windows notification from electron using node-notifier notifier.notify({ appName: "myapp", title: 'My notification', message: 'Hello, there!' }); I can run service from electron using node-windows from my main process var…
Anwar Hossain
  • 654
  • 6
  • 21
4
votes
5 answers

Electron with node-notifier display windows 10 notification

I'm trying to make a simple app that should display notification when button is clicked. The problem is that the notification does not show, but console.logs are showing. Should the notification work on development mode? (meaning just running…
Jaime Sangcap
  • 2,515
  • 6
  • 27
  • 45
3
votes
1 answer

Problem with [node_notifier] in [Electron + React] Project

I decided to use node_notifier to handle OS notifications of my electron application. The whole project is based on Electron JS alongside with React JS and the package.json is something like this. { ... "build": { "appId": "pod.talk.land" …
masoudmanson
  • 728
  • 6
  • 17
3
votes
2 answers

Electron notifications

I'm trying to get notifications working for an Electron app I've made using Angular 5 and Electron. So far I have the following code in my index.html file: