I've been experimenting with the SendPushNotification server API and I was wondering if it was possible to customize the actual notification by adding to it's payload.
Specifically, I am getting a notification on device like so:
{ aps: { alert: "Test message" } }
But I would like to be able to customize the payload to include more useful information for my app (mainly to handle the notification in the background):
{ aps: { alert: "Test message" }, myKey: { eventType: "coinsUpdated" } }
My understanding is that "myKey" should appear in Unity3D's Notification.userInfo hash -- assuming that I can get playfab to pass "myKey" to the client.
I've tried adding arbitrary keys to the SendPushNotification request to no avail. I am hoping there is some way to provide payload information.
Is this possible with the current implementation of SendPushNotification?