不发送 Amazon SnS 推送通知

Amazon SnS push notifications are not sent

我正在尝试通过 amazon sns 发送推送通知。 当我在亚马逊和应用端点手动创建 GCm 应用程序时,它给出以下错误

{Message Body: {"GCM":"{\"collapse_key\":\"Welcome\",\"data\":{\"message\":\"Hello World!\"},\"delay_while_idle\":true,\"time_to_live\":125,\"dry_run\":false}"}}
{Message Attributes:}
May 12, 2015 11:10:09 AM com.amazonaws.http.AmazonHttpClient logRequestId
INFO: x-amzn-RequestId: 60749365-b72d-5a0e-8eca-deae2ca89839
Caught an AmazonServiceException, which means your request made it to Amazon SNS, but was rejected with an error response for some reason.
Error Message:    Invalid parameter: TargetArn Reason: No endpoint found for the target arn specified (Service: AmazonSNS; Status Code: 400; Error Code: InvalidParameter; Request ID: 60749365-b72d-5a0e-8eca-deae2ca89839)
HTTP Status Code: 400
AWS Error Code:   InvalidParameter
Error Type:       Client
Request ID:       60749365-b72d-5a0e-8eca-deae2ca89839

但是当我在 java 中创建应用程序和端点时,它说

{EndpointArn:` arn:aws:sns:us-west-1:891575093309:endpoint/GCM/TestApp/3a1b5884-1533-3997-a819-9f362c3126f7}
{Message Body: {"GCM":"{\"collapse_key\":\"Welcome\",\"data\":{\"message\":\"Hello World!\"},\"delay_while_idle\":true,\"time_to_live\":125,\"dry_run\":false}"}}
{Message Attributes:}
Published! 
{MessageId=e5f9452e-09c7-5a94-9cf1-08e597674c00}

但我没有收到任何通知。请任何幸运地实施它的人...

问题是启用了 GCM google 我创建了新应用并使用了它的服务器 api 密钥一切正常...