How to avoid "Close" button on Windows notification via Electron

11 hours ago 3
ARTICLE AD BOX

you cannot directly remove close button but can try using electrons notification api. Windows notifications are rendered as toast notification, the close button appears only if you add any interactive actions. Try using a default template so that the simple toast without close button appears: E.g.:

const { Notification } = require('electron') new Notification({ title: 'Hello!', body: 'This is a simple notification' }).show()
Read Entire Article