3

I have been following https://medium.com/@dantasfiles/testing-push-notifications-with-aws-amplify-9126bd621d3a... during aws2 pinpoint send-messages --cli-input-json file://pinpoint-send-messages.json

gives an error

  "MessageResponse": {
    "ApplicationId": "YOUR AWS PINPOINT PROJECT ID",
    "EndpointResult": {
      "YOUR ENDPOINT ID": {
        "DeliveryStatus": "PERMANENT_FAILURE",
                "StatusCode": 410,
                "StatusMessage": "{\"errorMessage\":\"Unregistered or expired token\",\"channelType\":\"GCM\",\"pushProviderStatusCode\":\"200\",\"pushProviderError\":\"InvalidRegistration\",\"pushProviderResponse\":\"{\\\"results\\\":[{\\\"error\\\":\\\"InvalidRegistration\\\"}],\\\"multicast_id\\\":\\\"1231312312312312\\\",\\\"success\\\":0,\\\"failure\\\":1,\\\"canonical_ids\\\":0}\"}" 
            }
      }
    },
  }
}```
  • have you figured this out? Mine works if I use device token to push notification but I am getting this error when I use endpoint id. – likeachamp Jan 13 '21 at 03:53
  • ya. didn't work with endpoint id.. But you can create topics and send the notification to a required topic subscriber. – Sahej Maharjan Jan 14 '21 at 09:16
  • I see. I haven't looked into topics so no idea right now. I will look into that. Thanks for the suggestion. – likeachamp Jan 14 '21 at 23:30

0 Answers0