docs: indicate app.setBadgeCount() needs notifications permission to work (#38648)

docs: match docs for `app.badgeCount` and `app.setBadgeCount()`
This commit is contained in:
Dani Haro 2023-06-08 08:51:49 +02:00 committed by GitHub
parent 1f08e46bca
commit be45614f6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
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_
Returns `Integer` - The current value displayed in the counter badge.