Skip to content

Commit ae67bee

Browse files
trop[bot]John Kleinschmidt
authored andcommitted
Add instructions to get Notifications working on Win 10 Update (electron#16325)
Fails silently and was frustratingly hard to know why. Hope this save a lot of people some time.
1 parent f1f8fda commit ae67bee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/tutorial/notifications.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ While code and user experience across operating systems are similar, there
2323
are subtle differences.
2424

2525
## Windows
26-
2726
* On Windows 10, a shortcut to your app with an [Application User
28-
Model ID][app-user-model-id] must be installed to the Start Menu.
27+
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.
2928
* On Windows 8.1 and Windows 8, a shortcut to your app with an [Application User
3029
Model ID][app-user-model-id] must be installed to the Start screen. Note,
3130
however, that it does not need to be pinned to the Start screen.
@@ -97,4 +96,4 @@ GNOME, KDE.
9796
[notification-spec]: https://developer.gnome.org/notification-spec/
9897
[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
9998
[set-app-user-model-id]: ../api/app.md#appsetappusermodelidid-windows
100-
[squirrel-events]: https://github.com/electron/windows-installer/blob/master/README.md#handling-squirrel-events
99+
[squirrel-events]: https://github.com/electron/windows-installer/blob/master/README.md#handling-squirrel-events

0 commit comments

Comments
 (0)