Skip to content

Commit

Permalink
Add instructions to get Notifications working on Win 10 Update (#16326)
Browse files Browse the repository at this point in the history
Fails silently and was frustratingly hard to know why. Hope this save a lot of people some time.
  • Loading branch information
trop[bot] authored and John Kleinschmidt committed Jan 8, 2019
1 parent 0b6cc93 commit 1f411d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/tutorial/notifications.md
Expand Up @@ -23,9 +23,8 @@ While code and user experience across operating systems are similar, there
are subtle differences.

## Windows

* On Windows 10, a shortcut to your app with an [Application User
Model ID][app-user-model-id] must be installed to the Start Menu.
Model ID][app-user-model-id] must be installed to the Start Menu. This can be overkill during development, so adding `node_modules\electron\dist\electron.exe` to your Start Menu also does the trick. Navigate to the file in Explorer, right-click and 'Pin to Start Menu'. You will then need to add the line `app.setAppUserModelId(process.execPath)` to your main process to see notifications.
* On Windows 8.1 and Windows 8, a shortcut to your app with an [Application User
Model ID][app-user-model-id] must be installed to the Start screen. Note,
however, that it does not need to be pinned to the Start screen.
Expand Down Expand Up @@ -97,4 +96,4 @@ GNOME, KDE.
[notification-spec]: https://developer.gnome.org/notification-spec/
[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
[set-app-user-model-id]: ../api/app.md#appsetappusermodelidid-windows
[squirrel-events]: https://github.com/electron/windows-installer/blob/master/README.md#handling-squirrel-events
[squirrel-events]: https://github.com/electron/windows-installer/blob/master/README.md#handling-squirrel-events

0 comments on commit 1f411d3

Please sign in to comment.