java - Amazon SnS push notifications are not sent -


i trying send push notifications through amazon sns. when manually created gcm application @ amazon , application endpoint gives following error

{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 com.amazonaws.http.amazonhttpclient logrequestid info: x-amzn-requestid: 60749365-b72d-5a0e-8eca-deae2ca89839 caught amazonserviceexception, means request made amazon sns, rejected error response reason. error message:    invalid parameter: targetarn reason: no endpoint found 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 

but when create application , endpoint arns in java says

{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} 

but didnot receive notifications. please 1 has luckily implemented it...

issue gcm enabled google app created new , used server api key worked fine...


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -