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

Mac 10.12.3 - Notification does not disappear from screen

Open doronsever opened this issue 8 years ago • 5 comments

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 avatar Feb 06 '17 21:02 doronsever

@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 avatar Feb 16 '17 06:02 Riokai

@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 avatar Feb 16 '17 06:02 doronsever

@doronsever interesting, you are right....

Riokai avatar Feb 16 '17 06:02 Riokai

I think this might be solved in the master branch version.

mikaelbr avatar Aug 01 '17 09:08 mikaelbr

+1

dengyaolong avatar Jan 24 '18 04:01 dengyaolong