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?

gefragt vor 9 Monaten55 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen