【发布时间】:2013-05-29 02:16:34
【问题描述】:
我有 Android 和 Apple 推送通知与 PushSharp 一起使用,但我无法使用 Apple 通知发送自定义数据。
这发送完美:
push.QueueNotification(new AppleNotification()
.ForDeviceToken(device.Identifier)
.WithAlert(message)
.WithSound("default")
.WithBadge(7));
这根本不起作用:
push.QueueNotification(new AppleNotification()
.ForDeviceToken(device.Identifier)
.WithAlert(message)
.WithSound("default")
.WithCustomItem("incidentId", new[] { 1 })
.WithBadge(7));
后者永远不会触发 NotificationSent、NotificationFailed、ServiceException 等,也永远不会到达手机。
使用 PushSharp 2.0.4.0 版
我尝试添加自定义数据的方式有问题吗?
【问题讨论】:
标签: c# apple-push-notifications pushsharp