You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to display show notifications on demand (with WindowsToaster but it could be with anything I guess) but how could we connect that with the notifications that are coming from the BrowserWindow?
The text was updated successfully, but these errors were encountered:
I'm unsure what you mean. I've never used electron to a big extent, and don't know what you mean with connecting notifications from BrowserWindow to node-notifier.
Are thinking of using node-notifier as a fallback for electron notifications on Windows? In that case I'd say the best way would be to make your own abstraction of notification on top of Electron (just a function) that checks if you're on Windows or not. If on windows, use node-notifier.
Or you could just use node-notifier and let it handle all fallbacks and platform checking.
@lipis I created electron-notification-shim for exactly that purpose. It's really easy to use, just subscribe to notification-shim events in your main process. Bounce them back to the view if you want with the events returnValue or sender.send().
So notifications work out of the box on OS X, but not on Windows.
I managed to display show notifications on demand (with
WindowsToaster
but it could be with anything I guess) but how could we connect that with the notifications that are coming from theBrowserWindow
?The text was updated successfully, but these errors were encountered: