Reputation: 165
node-notifier displays SnoreToast at windows 10 notification.
How can I remove SnoreToast at both and SnoreToast's icon too?
js
function noti_click() {
const notifier = require('node-notifier');
// Object
notifier.notify({
title : 'Admin panel',
message: 'Server is provisioned',
icon : './facebook.png',
appId : 'cyber'
}),
function (error, response, metadata) {
console.log(response, metadata);
}
}
html
<button onclick="noti_click()">Noti</button>
Upvotes: 2
Views: 4851
Reputation: 7
You have used the wrong parameter. You have to use appID
instead of appId
. Note the capitalization.
Additionally, the value can't be empty. A string containing a space (" "
) should work.
Upvotes: 0
Reputation: 31
You can add appID: 'Your application ID' in the notify method. This will resolve your issue in the production environment
Upvotes: 3