Skip to main content
Version: 4.60

alert

This action triggers an alert in the form of the device's vibration and/or default notification sound.

note

On Android, this action is highly dependent on the current notification settings of the user, i.e. if the user's device is set to silent, only "heavy" vibration may work, and no sound will be played.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"playSound"BooleanIndicates whether the device plays sound when the action is triggered.false
"soundType"StringThe sound type that is played.null
"vibrate"BooleanIndicates whether the device vibrates when the action is triggered.false
"vibrationType"VibrationTypeThe vibration type.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Create an alert

Goal: Create an alert with heavy vibration and sound.

To achieve this the following code can be used:

{
"type": "alert",
"params": {
"vibrate": true,
"vibrationType": "heavy",
"playSound": true,
"soundType": "default"
}
}

The sound does not play when the device is muted

Result:

An alert action has been created