node-notifier
node-notifier copied to clipboard
Mac 10.12.3 - Notification does not disappear from screen
After today's mac os update, if i use this settings in order to use the 'reply' option:
notifier.notify({ title: title, message: body, sound: true, reply: true })
The notification does not disappear from the screen and get stuck on it... Only if i close it with the button it disappear... Any 1 also notice this??
@doronsever
According to README, you should add timeout
property, is work for me.
notifier.notify({
'title': void 0,
'subtitle': void 0,
'message': void 0,
'sound': false, // Case Sensitive string for location of sound file, or use one of macOS' native sounds (see below)
'icon': 'Terminal Icon', // Absolute Path to Triggering Icon
'contentImage': void 0, // Absolute Path to Attached Image (Content Image)
'open': void 0, // URL to open on Click
'wait': false, // Wait for User Action against Notification or times out. Same as timeout = 5 seconds
// New in latest version. See `example/macInput.js` for usage
timeout: 5, // Takes precedence over wait if both are defined.
closeLabel: void 0, // String. Label for cancel button
actions: void 0, // String | Array<String>. Action label or list of labels in case of dropdown
dropdownLabel: void 0, // String. Label to be used if multiple actions
reply: false // Boolean. If notification should take input. Value passed as third argument in callback and event emitter.
}, function(error, response, metadata) {
console.log(response, metadata);
});
@riokai the documintation is misleading. If you put a timeout and this will fire while the user is replying, the text he submitted won't be available.
@doronsever interesting, you are right....
I think this might be solved in the master branch version.
+1