PushSharpで Android、BB10、および iOS デバイスにプッシュ通知を正常に送信できます。WP8+ デバイスに通知を送信したいのですが、WindowsPhoneService の登録に成功していないようです。
私が使用しているコードは次のとおりです。
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.RegisterWindowsPhoneService();
WindowsPhoneToastNotification windowsPhoneToastNotification = new WindowsPhoneToastNotification()
.ForEndpointUri(new Uri([[Device Uri]]))
.ForOSVersion(WindowsPhoneDeviceOSVersion.Eight)
.WithBatchingInterval(BatchingInterval.Immediate)
.WithNavigatePath("/MainPage.xaml")
.WithText1("Test 1")
.WithText2("Test 2")
;
push.StopAllServices();
すべてが非常に簡単ですが、通知は送信されず、イベントは発生しません。何もない。「push.StopAllServices();」までブレークポイントをヒットできます。ただし、PushSharp 関連のイベントにはブレークポイントはありません。
私は何が欠けていますか?