2017-06-23 10:39:42 +00:00
# NotificationAction Object
* `type` String - The type of action, can be `button` .
2017-11-28 17:15:15 +00:00
* `text` String (optional) - The label for the given action.
2017-06-23 10:39:42 +00:00
## Platform / Action Support
2017-06-23 11:04:39 +00:00
| Action Type | Platform Support | Usage of `text` | Default `text` | Limitations |
2017-06-23 14:30:13 +00:00
|-------------|------------------|-----------------|----------------|-------------|
2017-09-12 13:51:53 +00:00
| `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` . |
2017-06-23 10:39:42 +00:00
### Button support on macOS
In order for extra notification buttons to work on macOS your app must meet the
following criteria.
* App is signed
2018-01-16 09:36:42 +00:00
* App has it's `NSUserNotificationAlertStyle` set to `alert` in the `Info.plist` .
2017-06-23 10:39:42 +00:00
If either of these requirements are not met the button simply won't appear.