node-mac-notifier
node-mac-notifier copied to clipboard
Create macOS notifications from Node.js
Hi, I try to make it work with the code sample of the doc: ``` const Notification = require('node-mac-notifier'); const notification = new Notification('Hello from node-mac-notifier', { body: 'It works!'...
 ` const macNotification = window.electronRequire('node-mac-notifier'); const notificationInstance = new macNotification(name, { tag:new Date().toString(), body: msg, icon: cPhoto, renotify: true, soundName: true, canReply: true, otherButtonTitle: '关闭', isOtherButton: true }); `
When using node-mac-notifier, getting the following exception which crashes the renderer. Facing this in macOS Catalina. Works fine in macOS Mojave. node-mac-notifier version : 1.2.0 ``` Terminating app due to...
Seems like it's unusable for apps trying to be cross platform, as developers can't install this package when not on a mac. Perhaps you can suggest an alternative notifier that...
This adds the ability to handle clicks on the other button by adding a handler for `didDismissAlert`. I'm not a mac developer, so it's totally possible this could add an...
1. `npm install node-mac-notifier` > I gor an Error: Cannot find module 'nan' 2. then I try to `npm install nan` 3. success to install and then `npm start`, but...
`npm install nan` fixes this, but seems like it should be unnecessary? ``` $ npm install node-mac-notifier npm WARN deprecated [email protected]: Use uuid module instead > [email protected] install /Users/karl.tiedt/Projects/polymer-2-electron-example/node_modules/node-mac-notifier >...
path.js:28 Uncaught TypeError: Path must be a string. Received undefined at assertPath (path.js:28:11) at dirname (path.js:1345:5) at Function.getRoot (webpack-internal:///1779:154:13) at bindings (webpack-internal:///1779:60:32) at eval (webpack-internal:///1773:5:50) at Object. (https://localhost:3001/dist/bundle.js:12286:1) at __webpack_require__...
Is there any way you could add an event for timeout and also an event for when the notification is closed / dismissed just like node-notifier has ?
The `onclick` property of a notification instance doesn't work. ``` javascript let Notification = require('node-mac-notifier'); let n = new Notification('test'); n.onclick = function() { console.log('onclick'); }; n.addEventListener('click', () => {...