mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
677 B
677 B
NotificationAction Object
typeString - The type of action, can bebutton.labelString - The label for the given action.
Platform / Action Support
| Action Type | Platform Support | Limitations |
|---|---|---|
button |
macOS | Maximum of one button, if multiple are provided only the last is used |
Button support on macOS
In order for extra notification buttons to work on macOS your app must meet the following criteria.
- App is signed
- App has it's
NSUserNotificationAlertStyleset toalertin theinfo.plist.
If either of these requirements are not met the button simply won't appear.