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 :
but GCM traffic is empty
and I don't get any notification in my phone(background and foreground) onNotification handler is never called.
Asked
Active
Viewed 848 times
0

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 Answers
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