简体   繁体   中英

Android Device Not Receiving GCM Notifications from Amazon SNS

We are moving our notification service from our servers to SNS. We have followed up AWS documentation. We were able to setup iOS notifications successfully.

But when sending to android nothing is received on the device. We have setup the application using the same key on our live server currently, we added an endpoint using a device hash that is active on the devices databases. We are trying to send the messages from SNS panel, but nothing is received on our android device!

What could we be missing to setup a working GCM with Amzon SNS?

Use a notification payload with a body, instead of a data payload. Here is the JSON:

{
 "GCM": "{ \"notification\": { \"body\": \"Hey. Just saying hi.\" } }"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM