You can create Android and iOS actions to display in a mobile app message draft.
After selecting New to create a new action, you are directed to the Actions > Create page. The user creates an action in the Action editor and can go back to the Actions page by clicking Actions on the breadcrumb in the upper left corner.
- From Android actions, or iOS actions click New.
- Fill out the fields in the Action editor section.
- Make a selection from the Type drop-down. The available action types are Custom action, Open app, Open dialer, Open URL, and Show inbox notification. All of these action types can be created for Android and iOS mobile app messages. All the same rules apply when building Android and iOS actions.
- Custom action - Custom actions are unique because custom properties can be added. At least 1 custom property is required, however users can add multiple custom properties by selecting the + on the right side of any custom property box. Users can also delete any custom property by selecting the x.
- Displayed action label: Required
- Description: Optional field
- Custom Properties > Add custom property:
- Type - Boolean, String, Number, or Object. The Boolean type requires the user to enter something in the Placeholder field for both a True and False value. Object types require the user to enter a valid JSON object in the Value field. Example: ["email1@test.com","email2@test.com"]
- Label - Required field
- Placeholder - If input required is True, then the placeholder field is required. If input required is False, then the placeholder field can be empty/null.
- Open app
- Displayed action label: Required field
- Description: Optional field
- Open dialer, Open URL, Show inbox notification
- Displayed action label: Required field
- Description: Optional field
- Placeholder: If input required is True, then the placeholder field is required. If input required is False, then the placeholder field can be empty/null but a Value field displays and input is required.
Note: In order to create and save a Show inbox notification action, the Marketer must already have created and saved 1 inbox template on the Development > Templates page. An error message displays if an inbox template is not saved.
- Custom action - Custom actions are unique because custom properties can be added. At least 1 custom property is required, however users can add multiple custom properties by selecting the + on the right side of any custom property box. Users can also delete any custom property by selecting the x.
- Make a selection from the Type drop-down. The available action types are Custom action, Open app, Open dialer, Open URL, and Show inbox notification. All of these action types can be created for Android and iOS mobile app messages. All the same rules apply when building Android and iOS actions.
- Review how the action displays in the Send Experience from the View (Read only) section. Preview and Code views are available. Preview mode is the default view, however, users can switch to Code view to see the JSON payload as the action is built.
- Create the action.
Note: Several validations are in place when users create or edit new actions. For example, when an action is created without selecting an action type or entering an action label, an error message displays when the user clicks Create.