【发布时间】:2015-08-04 07:52:16
【问题描述】:
Pushsharp IOS 通知在本地工作,但不能在实时服务器上工作,我什至无法跟踪错误在哪里,它没有触发以下任何事件,谁能建议任何调试提示。 我需要在服务器上做一些设置吗? 下面是我的代码。
PushBroker push = new PushBroker();
push.OnNotificationSent += NotificationSent;
push.OnChannelException += ChannelException;
push.OnServiceException += ServiceException;
push.OnNotificationFailed += NotificationFailed;
push.OnDeviceSubscriptionExpired += DeviceSubscriptionExpired;
push.OnDeviceSubscriptionChanged += DeviceSubscriptionChanged;
push.OnChannelCreated += ChannelCreated;
push.OnChannelDestroyed += ChannelDestroyed;
push.RegisterAppleService(new ApplePushChannelSettings(appleCert, "xxx"));
push.QueueNotification(new AppleNotification()
.ForDeviceToken("toked ID here") //dev
.WithAlert(msg)
.WithBadge(7)
.WithSound("sound.caf"));
【问题讨论】:
标签: c# ios apple-push-notifications pushsharp