Push Notification Template using message helpers

0

I'm creating a push notification template and would like to use the message helpers to control the messages depending on the custom attributes that I use, by following this documentation https://docs.aws.amazon.com/pinpoint/latest/userguide/message-template-helpers.html. But unfortunately I'm getting this kind of error.Error occurs when sending the push notification on test messaging in pinpoint

this is my current push notification template and just adding the helper on my message attributes, by just checking if the numbers are equal then they return the specified string messages.

"GCMMessage": {
    "notification": {
      "title": "サンプルメッセージ送信 タイトル",
      "body": "Welcome to AWS"
    },
    "data": {
      "message": "{{#eq 1111 11211}} Your City is on Alert Level 1! {{else}} Your City is on Alert Level 2! {{/eq}}"
    }
  },

I tried the message helpers also on creating Emails and its a success. So I'm wondering what's wrong. Is the syntax for push notification template(JSON) different when using the message helpers? Because I see no alternative syntax written on the documentation for push templates, so I'm assuming its just the same for the other templates. Can anyone provide any guides or resource that I can look with? Thank in advance.

질문됨 2년 전90회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠