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.