Electron with node-notifier display windows 10 notification

后端 未结 5 887
灰色年华
灰色年华 2021-01-03 05:56

I\'m trying to make a simple app that should display notification when button is clicked. The problem is that the notification does not show, but console.logs are showing. S

5条回答
  •  离开以前
    2021-01-03 06:19

    You can do this, it works for me even on windows 10.

    1. in package.json
     "build": {
     "appId": "your.custom.app.id",
     }
    
    1. in main.js
    app.setAppUserModelId("your.custom.app.id");
    

提交回复
热议问题