AboutSupportDeveloper GuideVersion 19.1.22

Set the BODY_CLICK field on an action with a type to allow the end-user to click the body of the notification to dismiss it. This was the default behavior in earlier releases. An event is also sent to the client application.

Note the following restrictions:

  • This override is ignored if buttons are passed to notification options.
  • The ActionBodyClickType.DISMISS_EVENT is supported only by ActionTrigger.SELECT/onSelect

Example

const notification = {
//...
onSelect: {BODY_CLICK: ActionBodyClickType.DISMISS_EVENT}
};

Hierarchy

  • ActionBodyClick

Properties

Properties

BODY_CLICK?: DISMISS_EVENT