【发布时间】:2013-03-19 07:48:59
【问题描述】:
我需要像这样发送 json 到 IOS 设备:
{"aps":{"content-available":1}}
我应该使用 AppleNotification 还是 AppleNotificationPayLoad 类?请提供示例代码。这是我现在如何创建通知的示例:
AppleNotification notification = NotificationFactory.Apple()
.ForDeviceToken(token)
.WithAlert(message)
.WithSound("default")
.WithBadge(7);
【问题讨论】:
标签: c# json push-notification apple-push-notifications pushsharp