0
你好朋友,我正在關注這個Push notification link並能夠實現它。它正在工作,但我試圖將CurrentChannel名稱從MyPushChannel更改爲Channeltest,然後它無法創建新通道並拋出invalidOperation類型的異常請你解釋我爲什麼這裏發生的是代碼..在Windows Phone 8中推送通知
private void AcquirePushChannel()
{
CurrentChannel = HttpNotificationChannel.Find("Channeltest");
if (CurrentChannel == null)
{
CurrentChannel = new HttpNotificationChannel("Channeltest");
CurrentChannel.Open(); // exception comming here
CurrentChannel.BindToShellTile();
}
}
josue你有沒有使用Windows Phone 8的通知中心..我需要一些幫助 – loop
嗨Tanuj,抱歉,但我沒有使用通知中心:( –