electron-forge / electron-forge-docs

:electron: Mirror for Electron Forge's GitBook documentation
https://electronforge.io
89 stars 151 forks source link

Notifications are not shown, when the app is packaged (exe) #190

Open katepysova opened 3 months ago

katepysova commented 3 months ago

const { app, BrowserWindow, ipcMain, Notification, nativeImage } = require("electron");

I tried both Notification from electron and basic Notifications API - in both cases when the app is packaged there is no notifications permission window when running application and therefore notifications are not working (even though there are no errors shown in the application itself).

When running from dev mode - both options work as expected (I am prompted to enable notifications when running app, and after enabling permissions they are appearing as expected)