mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
docs: indicate app.setBadgeCount() needs notifications permission to work (#38648)
docs: match docs for `app.badgeCount` and `app.setBadgeCount()`
This commit is contained in:
@@ -1276,6 +1276,9 @@ On macOS, it shows on the dock icon. On Linux, it only works for Unity launcher.
|
|||||||
**Note:** Unity launcher requires a `.desktop` file to work. For more information,
|
**Note:** Unity launcher requires a `.desktop` file to work. For more information,
|
||||||
please read the [Unity integration documentation][unity-requirement].
|
please read the [Unity integration documentation][unity-requirement].
|
||||||
|
|
||||||
|
**Note:** On macOS, you need to ensure that your application has the permission
|
||||||
|
to display notifications for this method to work.
|
||||||
|
|
||||||
### `app.getBadgeCount()` _Linux_ _macOS_
|
### `app.getBadgeCount()` _Linux_ _macOS_
|
||||||
|
|
||||||
Returns `Integer` - The current value displayed in the counter badge.
|
Returns `Integer` - The current value displayed in the counter badge.
|
||||||
|
|||||||
Reference in New Issue
Block a user