Guides

Actions

In this area you'll learn all about Actions and how you can extend your messages with interactions that harness the power of mobile and web technology to achieve more with remote notifications.

In every wizard where you can create content, depending on the Rich Push Templates you can choose (learn more about these templates here), you will find a section like the one below:

Actions 0c06b2289e

For templates that support actions, you will be able to add one more actions from the list of supported actions.

Response

With this type of actions you can create buttons in your message that can trigger the user input using text or the device's camera and quickly collect that input in Notificare or even in your own servers.

Response 515d9e3cb9

Selecting this type of action, will require that you insert at least a text in the Label field:

Label ff9e5fa3e5

If you wish to create a WebHook with the user's input and handle it in your own servers, add an endpoint URL in the Target field:

Response target ff7afa6687

We will make a POST request to the provided URL with a JSON body that will look like the following:

1
2
3
4
5
6
7
8
{
	"label": "Label of the action",
	"notification": "ID of the notification",
	"deviceID": "Device token that clicked the action",
	"userID": "The userID (if applicable) that clicked the action",
	"message": "The text the user replied with (if keyboard selected)",
	"media": "The URL of the image taken by the user (if camera selected)"
}

You can add placeholders in this field, by selecting them from the selector below:

Placeholders a8c9932b97

For this type of action it is possible to prompt the user to reply with text, for that you will need to check the following box:

Keyboard e9e45adfb3

For this type of action it is possible to prompt the user to reply with a picture taken from the device's camera, for that you will need to check the following box:

Camera f063e477fd

Make a Phone Call

If your message is targeting mobile devices with phone capabilities, you can include actions that trigger the user to make a phone call. To do that select the following option:

Phone call e9abca0e6a

Selecting this type of action, will require that you insert a text in the Label field:

Label ff9e5fa3e5

And you will have to provide a valid phone number in the Target field:

Phone target cc534d3fa4

You can add placeholders in this field, by selecting them from the selector below:

Placeholders a8c9932b97

Send a SMS

If your message is targeting mobile devices with SMS capabilities, you can include actions that trigger the user to send a SMS. To do that select the following option:

Send sms 0d98426f11

Selecting this type of action, will require that you insert at a text in the Label field:

Label ff9e5fa3e5

And you will have to provide one or more valid phone numbers (comma separated) in the Target field:

Sms target 15bbb76bb9

You can add placeholders in this field, by selecting them from the selector below:

Placeholders a8c9932b97

Open Mail Client

If your message is targeting mobile devices with email capabilities, you can include actions that trigger the user to send an email. To do that select the following option:

Send email d69a9a5e6a

Selecting this type of action, will require that you insert a text in the Label field:

Label ff9e5fa3e5

And you will have to provide one or more valid email addresses (comma separated) in the Target field:

Email target 3fbf398e38

You can add placeholders in this field, by selecting them from the selector below:

Placeholders a8c9932b97

Open Browser

If you would like to include a button in your message that opens the default browser in the user's device, you should select the following option:

Browser 495082b23b

Selecting this type of action, will require that you insert a text in the Label field:

Label ff9e5fa3e5

And you will have to provide the URL you wish to open in the Target field:

Browser target 0c33925b32

You can add placeholders in this field, by selecting them from the selector below:

Placeholders a8c9932b97

Open App

If your app supports deep linking, you may want to open your app in a certain view when users click in a button from a notification. To do that select the following option:

Deep link b168c8b035

Selecting this type of action, will require that you insert a text in the Label field:

Label ff9e5fa3e5

And you will have to provide the URL (your app must handle custom URL Schemes) you wish to open in the Target field:

Deep link target 4246b4afc6

You can add placeholders in this field, by selecting them from the selector below:

Placeholders a8c9932b97

Custom App Method

If you would like to execute certain functionality custom built in your app this action type will simply invoke that method. This requires some implementation work from your app development team before it can be used. If you've implemented the necessary steps to use this, select the following option:

Custom 26b3974715

Selecting this type of action, will require that you insert a text in the Label field:

Label ff9e5fa3e5

And you will have to provide a URL you wish to invoke in the Target field (app developers can use this type to create tailor-made actions):

Custom target c9c5c99953

You can add placeholders in this field, by selecting them from the selector below:

Placeholders a8c9932b97

About Segmentation Rules

All the actions shown above support segmentation rules, which will allow you to automatically categorize users when they click in those actions. This can be extremely useful since you can then later address these users based on their behaviour. So in every action you create, you will see an area like the one below:

Segmentation rules a875113746

Learn more about how to setup segmentation rules in our guides located here.

Finally, because these actions will be displayed to the user, before sending the message you can change the order which they will be displayed. To do that simply drag and drop an action to a different position in the list by clicking in the following icon:

Drag icon e935e5b81b