I'm trying to use node-notifier to display notifications on macOS but it fails everytime.
I've tried with a NotificationCenter, without, nothing work, it always timeouts.
Here's a few samples:
const NotificationCenter = require("node-notifier").NotificationCenter;
var notifier = new NotificationCenter({
withFallback: false, // Use Growl Fallback if <= 10.8
customPath: undefined, // Relative/Absolute path to binary if you want to use your own fork of terminal-notifier
});
notifier.notify(
{
title: "test",
message: "test",
},
function (err, response, metadata) {
console.log({ err, response, metadata });
// Response is response from notification
// Metadata contains activationType, activationAt, deliveredAt
}
);
I'm trying to use node-notifier to display notifications on macOS but it fails everytime.
I've tried with a NotificationCenter, without, nothing work, it always timeouts.
Here's a few samples:
logs:
Any ideas ?