Pinpoint notification not showing up on Android

0

Hi, I'm trying to set up some push notifications campaigns via Pinpoint, but I'm having troubles with notifications to Android.

I have both a iOS and an Android endpoint correctly subscribed. iOS works properly.

On Android, I can see push events coming through FCM (authentication is fine)^1, however, nothing is shown.

I have the impression Pinpoint is sending data messages instead of notifications^2, and using an Android service^3 to handle them as user notifications. However, our app is a Capacitor app, Cognito authentication and Pinpoint are handled as JavaScript code, so we're using Amplify JS, not Amplify Android.

If I try to send this payload, nothing is shown:

{
  "MessageConfiguration": {
    "GCMMessage": {
      "Title": "hello",
      "Body": "world"
    }
  }
}

On the other hand, this works:

{
  "MessageConfiguration": {
    "GCMMessage": {
      "RawContent": "{\"notification\":{\"title\":\"hello\",\"body\":\"world\"}}"
    }
  }
}

The problem is that Pinpoint campaigns use the former. The idea of Pinpoint would be to delegate creating campaigns to a non-technical marketing team, but we find it hard to do when one of the steps would be "prepare your message with this JSON format then stringify it" 🥲

Am I misconfiguring something? Is there a way to get Pinpoint to behave consistently between iOS and Android?

질문됨 6달 전146회 조회
답변 없음

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

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

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

관련 콘텐츠