node-notifier icon indicating copy to clipboard operation
node-notifier copied to clipboard

Notification fires 3/4 times (mac)

Open surajsharma opened this issue 4 years ago • 1 comments

my code is simple

    notifier.notify({
        title: "Attention!",
        message:
            notifications[random.int((min = 0), (max = notifications.length))],
    });

this runs in a loop which is triggered randomly every few minutes, however, the notification appears only3/4 times, specifically, it skips after every three turns, what gives?

surajsharma avatar Apr 20 '20 04:04 surajsharma

I think this might be an anti-spam filter or some logic with the Notification Center in macOS. Try using terminal-notifier directly and see if this reproduces the issue.

mikaelbr avatar Aug 10 '20 20:08 mikaelbr