897 B
897 B
NotificationAction Object
typeString - The type of action, can bebutton.textString - (optional) The label for the given action.
Platform / Action Support
| Action Type | Platform Support | Usage of text |
Default text |
Limitations |
|---|---|---|---|---|
button |
macOS | Used as the label for the button | "Show" | Maximum of one button, if multiple are provided only the last is used. This action is also incompatible with hasReply and will be ignored if hasReply is true. |
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.