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
* docs: revised Notifications feature page
* docs: fixed mentions and updated content according to style guide in the notifications feature page
* docs: fixed lint errors in the notifications feature page
* docs: slightly improved consistency of steps in the notifications feature page
* docs: fixed mentions in the notifications feature page
After launching the Electron application, you should see the notification:
70
+
71
+

72
+
73
+
## Additional information
74
+
22
75
While code and user experience across operating systems are similar, there
23
76
are subtle differences.
24
77
25
-
## Windows
26
-
* On Windows 10, a shortcut to your app with an [Application User
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.
78
+
### Windows
79
+
80
+
* On Windows 10, a shortcut to your app with an
81
+
[Application User Model ID][app-user-model-id] must be installed to the
82
+
Start Menu. This can be overkill during development, so adding
83
+
`node_modules\electron\dist\electron.exe` to your Start Menu also does the
84
+
trick. Navigate to the file in Explorer, right-click and 'Pin to Start Menu'.
85
+
You will then need to add the line `app.setAppUserModelId(process.execPath)` to
86
+
your main process to see notifications.
28
87
* On Windows 8.1 and Windows 8, a shortcut to your app with an [Application User
29
88
Model ID][app-user-model-id] must be installed to the Start screen. Note,
30
89
however, that it does not need to be pinned to the Start screen.
@@ -44,7 +103,7 @@ to 200 characters. That said, that limitation has been removed in Windows 10, wi
44
103
the Windows team asking developers to be reasonable. Attempting to send gigantic
45
104
amounts of text to the API (thousands of characters) might result in instability.
46
105
47
-
### Advanced Notifications
106
+
####Advanced Notifications
48
107
49
108
Later versions of Windows allow for advanced notifications, with custom templates,
50
109
images, and other flexible elements. To send those notifications (from either the
@@ -53,40 +112,47 @@ main process or the renderer process), use the userland module
53
112
which uses native Node addons to send `ToastNotification` and `TileNotification` objects.
54
113
55
114
While notifications including buttons work with `electron-windows-notifications`,
56
-
handling replies requires the use of [`electron-windows-interactive-notifications`](https://github.com/felixrieseberg/electron-windows-interactive-notifications), which
57
-
helps with registering the required COM components and calling your Electron app with
0 commit comments