registerPush
Registers the app for push messages. A pop-up may appear before the registration (and thus the system message is displayed on iOS) takes place.
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"params" | Object | undefined | null |
Parameters
Key | Type | Description | Default Value |
---|---|---|---|
"alertCancel" | String | The text of the "No" button. | null |
"alertMessage" (required) | String | The message of the Pop-up. | null |
"alertOK" | String | The text of the "Yes" button. | null |
"alertTitle" (required) | String | The title of the Pop-up. | null |
Inherited
From Base Action
Base Action
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"dynamicParams" | Object | Dynamic params to retrieve data from a specific context e.g. a userSetting. | null |
"leadingDelimiter" | String | The leading mustache delimiter to use. | null |
"params" | Object,Array | Object containing the properties of the action. | null |
"trailingDelimiter" | String | The trailing mustache delimiter to use. | null |
"type" | String | Type name of the action. | null |
Examples
Example: register for push
Register the app for push messages.
{
"type": "registerPush",
"params": {
"alertTitle": "Enable pushs",
"alertMessage": "Do you want to receive push notifications?",
"alertOK": "Hell yeah!",
"alertCancel": "Hell no!"
}
}
The actions to be executed are specified in the actions
parameter, in this case a registerPush action.
Result:
A registerPush action has been created.