Skip to content

Commit

Permalink
feat(push): added support for Action Buttons on iOS with categories (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pbailhache authored and ihadeed committed Jul 7, 2016
1 parent 4a38c02 commit 592feb4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/plugins/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,29 @@ export interface IOSPushOptions {
* **Note**: only usable in conjunction with `senderID`.
*/
topics?: string[];

/**
* The data required in order to enable Action Buttons for iOS.
* Action Buttons on iOS - https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#action-buttons-1
*/
categories?: CategoryArray
}

export interface CategoryArray {
[name: string]: CategoryAction
}

export interface CategoryAction {
yes?: CategoryActionData
no?: CategoryActionData
maybe?: CategoryActionData
}

export interface CategoryActionData {
callback: string
title: string
foreground: boolean
destructive: boolean
}

export interface AndroidPushOptions {
Expand Down

0 comments on commit 592feb4

Please sign in to comment.