简体   繁体   中英

Amazon SNS Console Push notification sending Empty notification

I want to send push notification via GCM to an android phone endpoint. SNS is configured and is ready to send notification.In the SNS console using JSON I sent

{ "GCM": "{ \\"notification\\": { \\"title\\": \\"Title\\", \\"body\\": \\"Body\\" }, \\"data\\":{} }" }

But I receive only empty notification.No body,no title(only with app icon).

This is the correct code:

{
"GCM": "{ \"data\": { \"message\": \"test message\" } }"
}

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