I'm sending a push notification via server.SendPushNotification to an iOS Unity client. It shows up in
NotificationServices.remoteNotifications
However, the userData field is empty. As I understand it, this should contain the whole payload, including any custom fields that I add, but it doesn't.
My payload looks a bit like this:
const applePayload = { alert: { title: "some subject", body: "some body" }, custom_info: "some custom info" }; const pushRequest = { Recipient: currentPlayerId, { Platform: "ApplePushNotificationService", Json: JSON.stringify(applePayload) }] }; server.SendPushNotification(pushRequest);
Is this not currently supported on iOS? I know Android had advanced features first but I was under the impression that both had them now (I haven't tried with Android yet).
As a note, I also tried using the 'Package' field of the SendPushNotificationRequest and setting the CustomData, but that didn't work either. I tested both receiving inside and outside my application.