I'm developing an app for both iOS and Android. We're using AWS SNS for Push Notifications. iOS runs fine, but for Android I receive a push event but the payload is empty no matter what we try in SNS. (Have tried to push via Arrow and it works fine, so it feels like a problem in SNS)
Is there anybody out there who have done the same and got it to work?
The solution is to put the payload inside the data object.
"data":{
"payload":{
"android": {
"alert": "This is a message from my own server"
}
}
}