Options that control the notification information sent to a client app client when a Geotrigger condition is met.
Referenced by: Fence Geotrigger
Properties
Property | Details |
---|---|
expressionInfo | An optional Arcade expression which can be used to configure notification information when the Geotrigger condition is met. The expression uses the Geotrigger Notification Arcade profile. The expression can return either a String that will be used for a user facing message or a Dictionary that can include a user facing message with the key 'message', and a recommended list of app actions using the key 'actions'. |
requestedActions[] | An optional list of strings indicating the set of possible actions resulting from this Geotrigger. This property shows the full list of recommended actions that the author intends to be taken for this Geotrigger. Note that there is no requirement to take any action when a notification is delivered, but these provide a way to understand the intention of the author of the Geotrigger. These strings can be displayed to a user to make them aware of the Geotrigger's expected behavior, or used by client apps to determine whether the desired actions are supported. If a client app receives notification information containing an unrecognized action they should ignore it. Actions can be any strings that are supported by geotrigger enabled apps in your organization and should cover all possible 'action' values returned from evaluation of expressionInfo.expression. |
Geotrigger Notification Options Example
{
"expressionInfo": {
"title": "Expression Info",
"expression": "return {'message': 'You have entered ' + $fencefeature.name, 'actions': [ 'startTracking' ]}"
},
"requestedActions": [
"startTracking"
]
}