I have Android and Apple push notifications working with PushSharp, but I'm having trouble sending custom data with the Apple notifications.
This sends perfectly:
push.QueueNotification(new AppleNotification()
.ForDeviceToken(device.Identifier)
.WithAlert(message)
.WithSound("default")
.WithBadge(7));
This doesn't work at all:
push.QueueNotification(new AppleNotification()
.ForDeviceToken(device.Identifier)
.WithAlert(message)
.WithSound("default")
.WithCustomItem("incidentId", new[] { 1 })
.WithBadge(7));
The latter never hits NotificationSent, NotificationFailed, ServiceException, etc. and never makes it to the phones.
Using PushSharp version 2.0.4.0
Am I doing something wrong with how I'm trying to add the custom data?