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?

feita há 8 meses54 visualizações
Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas