Using the APNS Delivery Channel in a Campaign
Once the APNS delivery channel is created and configured, they are specified per message in campaigns in the Campaigns manager.
Using an APNS Delivery in a Campaign
To configure a message for APNS in a campaign:
When creating a message for a campaign the sending mode must be “SMS Only” and the Delivery Channel should be the APNS Delivery Channel configured above.
In the message content screen, specify a content URL that produces a JSON payload that can be consumed by APNS. Static content or scripted static content URLs may use Connect merge tags.
An example JSON payload is shown below. The "<%[First Name]%>" merge tag will be replaced with the first name from each customer record.
{ "aps" : { "alert" : {"loc-key":"Dear <%[First Name]%>, %@ has risen to %@", "loc-args":["HBC","99"]}, "badge" : 42} }