inbox as a routing channel.
Routing channels control the delivery method for a message. Other channels include email, SMS and push.
In the example below, we call the Send API to send a message to a user’s Inbox with variable interpolation.
Passing data with an Inbox message
If you provide information in the data field, it will be passed with the inbox or push message to the SDK.
Data that is referenced in your content payload or in a template (like {{ villain }} in the example above),
will be interpolated.
Data that is not referenced will still be passed through with the message. This can be
particularly useful for deep linking, opening a particular view in your app from a link or push notification.
Using Courier Elemental Syntax
Inbox SDKs support a subset of Elemental syntax. Elemental is a JSON-based templating format for composing cross-platform notifications.| Element | Web | iOS | Android |
|---|---|---|---|
| Title | |||
| Body | |||
| Text | |||
| Action |