I am showing a notification from the main process on MacOS:
notify(duration: number) {
const notification = new Notification({
title: '3DPrinter needs paused',
body: 'for user attention',
})
notification.on('close', () => {
if (this.statusManager.printerNeedsAttention()) {
this.notify(duration)
}
})
notification.on('action', () => {
console.debug('action')
})
notification.on('show', () => {
console.debug('show')
})
notification.on('reply', () => {
console.debug('reply')
})
notification.on('click', () => {
console.debug('click')
})
notification.show()
}
```. I see the notification. When I click on it, it goes away, but none of the event emitter's seem to fire. Suggestions for how I'm doing it wrong welcome.