Closed
Description
hH! Windows 10 latest
What did i do wrong?
constructor(serve) {
this.serve = serve;
const defaultIconPathPrefix = this.serve ? '/../../src/assets/' : '/../../dist/secure-box/assets/';
this.defaultIconPath = path.join(__dirname, defaultIconPathPrefix + 'icons/icon-72x72.png');
notifier.on('click', (notifierObject, options, event) => {
console.log('click ', 1);
console.log('obj ', notifierObject);
console.log('opti ', options);
console.log('event ', event);
});
notifier.on('timeout', (notifierObject, options) => {
console.log('finish ', 1);
});
this.subscribeToShowing();
}
public subscribeToShowing() {
ipcMain.on('notification', (event, data) => {
// event.returnValue = 'pong';
notifier.notify({
message: data.message,
title: data.title,
sound: data.sound || true, // "Bottle",
icon : data.icon || this.defaultIconPath,
wait: data.wait || true,
}, (err, res) => {
if (err) {
return;
}
});
});
}
When I click on a notification click event doesn't work