我有向IOS发送通知的问题。
我使用以下代码向IOS设备发送通知:
var appleCert = File.ReadAllBytes(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "../../../Resources/xxxxxxxxx-2015.p12"));
push.RegisterAppleService(new ApplePushChannelSettings(appleCert, "xxxxxxxx"));
push.QueueNotification(new AppleNotification()
.ForDeviceToken("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
.WithAlert("Hello World!")
.WithBadge(7)
.WithSound("sound.caf"));
失败:PushSharp.Apple.ApplePushService - >类型为' PushSharp.Apple.NotificationFailureException'被抛出**
提前致谢。