Hey there! :)
I've been trying to use the Package Parameter of SendPushNotification, as specified here:
https://api.playfab.com/documentation/server/method/SendPushNotification
My requests look something like this:
{ "Recipient": "9A9DB198169B0289", "Package": { "Message":"hi", "Title":"title", "CustomData":"mycustomdata" } }
However all this does is send weird json in place of the message. Specifically
{"ScheduleDate":null,"Title":"title","Message":"hi","Icon":null,"Sound":null,"CustomData":"mycustomdata"}
So now I'm rather confused with my findings and could use some explanations:
1.) Am I doing anything wrong or is this how it is supposed to work?
2.) While on Android it would be possible to parse the message and build the notification manually, how would one prevent, that the above json is being displayed to the user on iOS, while the application isn't running?
3.) Why is the "Message"-field from the Package not used in the same way, as the normal "outer" message field would be used?
4.) Why is the custom data not submitted in the usual format in which iOS and Android would receive custom data?