From 198b4547c95c38c9b7712221b3a970a9f3866d45 Mon Sep 17 00:00:00 2001 From: Vik Ramanujam Date: Tue, 8 Jan 2019 21:55:46 +0800 Subject: [PATCH] Add instructions to get Notifications working on Win 10 Update Fails silently and was frustratingly hard to know why. Hope this save a lot of people some time. --- docs/tutorial/notifications.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/notifications.md b/docs/tutorial/notifications.md index f6144544a993b..177bfa03503b5 100644 --- a/docs/tutorial/notifications.md +++ b/docs/tutorial/notifications.md @@ -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. @@ -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 \ No newline at end of file +[squirrel-events]: https://github.com/electron/windows-installer/blob/master/README.md#handling-squirrel-events