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}\"}"
}
}
},
}
}```