Pinpoint push notification template with raw JSON using message helper

0

I'm creating push notification template with raw JSON.
However, including message template helper in JSON attribute causes a following error while sending message.

PERMANENT_FAILURE Invalid template: Mismatched start/end tags

This is the message template I've created.

{
  "APNSMessage": {
    "aps": {
      "alert": {
        "title": "{{#eq Demographic.Locale 'en_US'}}English Title{{else}}Other{{/eq}}",
        "body": "This is notification body."
      }
    },
    "some-custom-attribute": "foo"
  }
}

Message template helper in standard message works as expected, but I prefer using raw JSON in order to add custom attribute to push payload.
Is it possible or any alternatives?

已提問 9 個月前檢視次數 55 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南