In my Node.js
application I implemented notifications, with the code like this:
const notifier = require('node-notifier');
const path = require('path');
notifier.notify(
{
// appID: "appID",
title: "title",
subtitle: "subtitle", // doesn't work :(
message: "message",
icon: path.resolve(__dirname, 'info.png'),
sound: true,
timeout: 10,
wait: false
},
function (err, response, metadata) {
// Response is response from notification
// Metadata contains activationType, activationAt, deliveredAt
}
);
If appID
parameter is not specified, the result looks as follows:
…which includes preset default left-top icon and caption “SnoreToast”.
If I set my own appID
parameter, the caption changes to desired text, however icon disappears:
Is it possible to set a custom left-top icon for this type of notification?