0

Hello friends i am following this Push notification link and able to implement it . it is working but i tried to change the CurrentChannel name from MyPushChannel to Channeltest then it is not able to create new channel and throwing exception of invalidOperation type will you guys please explain me why it is happening here is the code..

private void AcquirePushChannel()
    {
        CurrentChannel = HttpNotificationChannel.Find("Channeltest");


        if (CurrentChannel == null)
        {
            CurrentChannel = new HttpNotificationChannel("Channeltest");
            CurrentChannel.Open(); // exception comming here
            CurrentChannel.BindToShellTile();
        }


    }
4

1 回答 1

1

在 Windows Phone 中,每个应用程序都有一个推送通道的限制。如果要更改名称,请从设备/模拟器中卸载应用程序并再次进行部署。它应该工作。

于 2013-10-02T10:55:55.137 回答