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?
Answer by Brendan · Jul 06, 2016 at 07:29 PM
We do currently support advanced Push Notifications for Android: https://api.playfab.com/docs/push-for-android/. We'll be adding support for it on iOS as soon as we can as well.
Any update on when Advanced Push Notifications for iOS might be available? We need this to make it easier to launch into one of our multiplayer games from an invite. Is there a feature request page where we can track these sort of items?
Sorry, but until we're actively working on a backlog item, we can't really provide a date for it, as our schedule can change quite a bit from sprint to sprint (due to the needs of the live service).