mikaelbr / node-notifier

A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback)
MIT License
5.72k stars 323 forks source link

Not working in macOS Minterey (12.6, Intel)? #419

Open benoitlahoz opened 1 year ago

benoitlahoz commented 1 year ago

I've been trying to launch notifications by using notify and new NotificationCenter and have always the same error :

Error: Couldn't connect to growl (might be used as a fallback). Make sure it is running

My code looks like this:

notify('Hello world!');

// OR

new NotificationCenter({ withFallback: true }).notify(
{
  title: 'Hello',
  subtitle: 'world!',
  wait: true,
},
(err, response) => {
  console.log('ERR', err);
  console.log('RESPONSE', response);
}
);

Am I missing something? Thank you!

Electron's sandboxing is true, nodeIntegration is false, contextIsolation is true.

OS: macOS Monterey 12.6 Node: 16.13.2 Electron: 20.1.4 Vite: 2.6.14