Guides

Create Push Template

In this area you'll learn how to create a push message template.

To access this area, expand the menu item Messages and click in Templates as follows:

menu

In this page, expand the New Template menu and click in in Push Template:

new push template button

This will take you to a wizard divided in five different tabs, as shown below:

tabs

Some sections are optional and you will notice that they are marked as ready by default.

Setup

In the Setup tab, you will need to provide a name for your template. This will help you identify templates later on:

name

Segmentation

If you would like to automatically categorize users when they open your messages, you can use segmentation rules to do so. Click in the Segmentation tab:

segmentation rules

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

Content

To actually create the content your users will see when you send a push message, click in the Content tab. If you are using our inbox functionality, you may localize your content in multiple languages. For that toggle the switch Use localized content to start creating content in other languages:

use localized content

Automatically a new tab called Default will appear, which will allow you to create the content that we will use as a fallback when the device that receives the message does not have a language provided by the localized content you create.

default tab

Make sure you create the default content before proceeding to add more languages, as other localized content must share the same type and actions you use in the default content. When you are ready to add more languages, go ahead and click in the following button:

add language button

This will open a new window where you can select a language/region combination. Note that region is a property that is only available in SDK 2.0 or higher, so it's important your apps use this version if you would like to have use a language/region combination. If your apps do not support this version or you simply don't need to create content based on a language/region combination, you can leave the region option unselected.

add locallized content modal

Adding languages will eventually add new tabs to the message composer, as shown below. Make sure you localize all fields accordingly in each tab:

new language tab

A push message can include a lock screen image, for that simply upload a image file or use an existing one (only available if you have the Storage add-on) in the Lock Screen Media section:

lock screen media

By default a push message will always generate a remote notifications, if you are using our inbox functionality and you don't want to generate one and only show it in the inbox instead, go ahead and toggle the following option OFF:

send push

Optionally you can also include a title (please note that this field allows placeholders):

title

Also optional, a push message can contain a subtitle (please note that this field also allows placeholders):

subtitle

It is mandatory that you include a short message (please note that this field allows placeholders):

message

Then you should select a Rich Push Template, by default we will include several templates but you can also create your own. Select one of the options by expanding the menu below:

rich push templates

To learn more about these templates read the guide here. To learn how to create your own rich push templates, read the guide located here.

Finally you can also add actions to your messages, by using the option below:

actions

To learn more about actions, please read the guide here.

Options

In this tab, you can use the following option to ignore the messaging limit you've previously defined for your app:

ignore messaging limit

This can be useful for time-sensitive messages or particularly important communication.

Optionally, for each push message, you can also configure some optional settings. To do that click in the Options tab. If you wish to not deliver your message after a certain amount of time, provide a value in seconds in the following field:

ttl

This can be useful if the content of your message is time sensitive and not relevant if not delivered (recipient's device is OFF or unavailable) after a certain amount of time.

It is also possible to configure a sound for your message. By default, your message will not produce any sound but you can provide default as the value to let the device play the default sound when a message arrives. You can also play custom sounds, for that you need to include a sound file in your apps. For iOS we advise you to use the .caf format and for Android and Web the .mp3 file format. To play custom sounds you will need to specify the file name in this field:

sound

In some cases, your app might need to handle some information before processing a push message. For those cases, we allow you to include a machine-readable value (key-value pairs JSON object) in each message as the Extra:

extra

Developers should then handle this data in the app as it will be accessible as soon as the message is delivered to the user's device.

Finally you can also provide some platform-specific options. For iOS you can override the badge value:

ios tab

Please note that if you are using the inbox functionality with the Auto-Badge option, any value you provide in this field will be ignored.

For Android you will be able to remotely provide which channel to use and/or the LED colour and ON/OFF interval (when supported by the device):

android tab

For Web you will be able to remotely define if a message should only be dismissed after a user interacts with it (when supported by the browser):

web tab

These settings might be useful if you want to send a message platform specific message.

Delivery

Finally you can configure the throttle rate of a message by clicking in the Delivery tab:

If you wish to throttle the delivery of a message, you can toggle the option below:

throttle

This will allow you to specify the rate of how many messages we should send per second (min. 10/sec):

throttle rate

As you compose your message you can also see how it will look like by clicking in the Preview button:

preview button

Once you are done composing your message, click in the Create Template button to actually save the template:

create button

Keep reading our guides to learn how to edit a template.