Skip to content

Actions

szabist edited this page Jun 9, 2021 · 2 revisions

Contents

1. Actions

The Emarsys SDK support different types of actions, what can be triggered by: Push buttons, Silent Push, Inbox buttons, In-App and Inline In-App messages or an On Event Action.

Action types

1.1 App Event

App event type action is useful to trigger a registered eventHandler in the Emarsys SDK. An event is going to contain the following:

  • name - String
  • payload - Map<String, Any>?

Note

It is possible to set DeepLink type of action as well on the Emarsys UI, which is not a type in the Emarsys SDK. DeepLink type of actions will behave like a special type of App Event, where the name parameter will be DeepLink and the payload will contain the URL.

1.2 Custom Event

Custom event type action is useful to e.g. trigger an Interactions program at Emarsys automatically based on the users interaction instead of calling trackCustomEvent manually.

1.3 Open External URL

Open External URL is useful to navigate the user out of the application, by opening the specified URL in the default browser of the device.

1.4 Dismiss

Dismiss action is used to dismiss the shown notification. This action is only available for push messages.