0

I have configured app and services, I followed the article but with GCM instead FCM https://medium.com/@thexap/show-push-notifications-on-react-native-app-a613a5a2c159
When I try publish message via SNS -> Applications -> publish to endpoint, I have succeeded message :
enter image description here
but GCM traffic is empty
enter image description here
and I don't get any notification in my phone(background and foreground) onNotification handler is never called.

Nakul
  • 1,313
  • 19
  • 26
Andrey Shostik
  • 164
  • 2
  • 13
  • I think you need to implement client side service to be able to send data loads in your android device. You can follow this [SO post](https://stackoverflow.com/questions/38300450/fcm-with-aws-sns/49149156) for a more detailed explanation about the processes you need to do to process your data in your android devices. Hope this helps. – MαπμQμαπkγVπ.0 Mar 30 '18 at 06:57

1 Answers1

0

The problem is in the amazon's outdated SNS documentation.

I have changed the payload format and it works for me.

{
"GCM": "{ \"notification\": { \"body\": \"hello....\", \"title\": \"title123\" } }"
}
Biranchi
  • 16,120
  • 23
  • 124
  • 161