Upload a ZIP archive (Rich Media Templates syntax)
This guide refers to developing custom Rich Media pages
Important notice
Starting from iOS 9, the operating system enables App Transport Security by default and requires all the network connection to support HTTPS and Perfect Secrecy. To use images, videos or other content for Rich Media that comes from non-secure HTTP servers you have to disable ATS in your app.
To disable ATS for your application, please follow this post.
Template structure
Template is simply a .zip archive that can contain HTML, JavaScript, CSS and images as Rich Media assets. The archive must contain index.html file in its root.
Please make sure that your index.html is UTF-8 encoded.
Template placeholders
You can use placeholders in the Rich Media templates that will allow you to change and localize the values in Rich Media content.
A placeholder must follow the format below:
{{ Placeholder name | Type | Default value }}
Where:
Placeholder name — is the name of the placeholder that will be visible in the Rich Media editor.
Type — is the type of the placeholder. The type can be any of the following values:
color — color input
text — text input
html — text area (multiline text)
Default value — default value that is used if no value is provided in the editor. If none is set then Placeholder name is used as a default value.
Example:
{{Header text|text|Tell Us What You Think}}
Adding Pushwoosh.json
You can group placeholders so they would be linked together in the Rich Media editor:
To achieve that, add pushwoosh.json file to the archive with your Rich Media template next to the index.html file.
The structure of the file is very simple and should be self explanatory: