I tried out the new package property of server.SendPushNotification that was currently introduced with Playfab SDK 170710 and was glad to have more control now over the push notification. However it doesnt seem to do what it should.
The push message text that I receive on my iPhone is not the string that I fill into "request.package.message" but instead it is the whole json-formatted string of the package, with all the brackets.
I tried it in two different ways (and the api call result of both ways says successful):
The first way is via the "Try it" button on the API docu page. In the "Package: (Optional)"-field I fill
{ "Title" : "mytesttitle", "Message": "mytestmessage"}
The second way is via cloudscript. I use this cloudscript:
handlers.SendPushNoteTest = function (args) { var request = { Recipient: "EA1BC04E11E45371", Package: { Title: "mytesttitle", Message: "mytestmessage" } }; server.SendPushNotification(request); }
Doing that I expect a push note on my iPhone with the message
mytestmessage
Instead I receive (in both cases) a push message saying
{"ScheduleDate":null,"Title":"mytesttitle","Message":"mytestmessage","Icon":null,"Sound":null,"CustomData":null}
So the whole json-string is displayed instead of only the message.