g.developer
g.developer

Reputation: 165

How to remove SnoreToast in node-notifier in Electron

node-notifier displays SnoreToast at windows 10 notification.

How can I remove SnoreToast at both and SnoreToast's icon too?

enter image description here

enter image description here

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

Answers (2)

Bhargav Ghodasara
Bhargav Ghodasara

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

user14046529
user14046529

Reputation: 31

You can add appID: 'Your application ID' in the notify method. This will resolve your issue in the production environment

Upvotes: 3

Related Questions