Once you are enabled for the rich-push beta feature, you can use Jinja syntax to set a rich push image that changes based on a parameter value for a triggered push notification.
1. Create a new Push notification message.
2. Set the URL of the image using new syntax Jinja to include your parameter.
Make sure you use brackets around the parameter name (see 'dest_code' above).
3. Trigger the push notification off the event whose parameter matches your image URL.
Android event with parameter example:
iOS event with parameter example:
4. Test your new push notification on a real device before sending to users!
See iOS and Android examples below:
Things to note:
- If the image does not exist, the push will be sent without the image. The image is resolved on the app, so the push will still be sent, but the image URL will not return an image.
- If the parameter ("dest_code" in this example) is not provided in the event, the push will not be sent. Failing to provide the right parameter with the event will cause the Jinja customization to fail, which causes the entire message to not send.