Open sarfarazansari opened 6 years ago
hey there
let opts: any = { title: data.title, message: data.message.content, icon: path.join(__dirname, '/assets/icon/icon.png'), sound: true, timeout: 5, reply: true }; mac.notify(opts, (err: any, response: string, metadata: any) => { console.log (response); console.log (metadata); handleRes(e, data, err, response, metadata); });
when I tried to use timeout option with combination of reply, unable to listen on replied response. for reference check image
timeout
Note: it's kind of a feature request if We can set timeout in lower number and if user replied then it should be listen by both events
Hey! Have you tried using the wait option?
wait
As (maybe poorly specified) here: https://github.com/mikaelbr/node-notifier#all-notification-options-with-their-defaults
wait is required for listening for reply
hey there
when I tried to use
timeout
option with combination of reply, unable to listen on replied response. for reference check imageNote: it's kind of a feature request if We can set timeout in lower number and if user replied then it should be listen by both events