Using a Notification Template
Instead of defining the content of the entire notification in-line, you can leverage Templates to send a message.
You can create notification templates using the Designer. After you create a template (or edit an existing one), add a new channel and select “Inbox”. This will provide you with a blank template that you can use to customize the content that will delivered with that notification.
INFO
Note: pinning is not available in the mobile (iOS and Android) SDKs.
When calling the API, simply replace the content
field with a template
field that defines either a Template ID or an Event ID.
Data Mapping
Information in data
will be passed through, but requires “data mapping” inside of the template’s channel settings to pass through to the SDK. You can toggle data mapping on in the Inbox channel settings.
Data mapping enabled