loop
loop

Reputation: 9242

push notification in windows phone 8

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();
        }


    }

Upvotes: 0

Views: 121

Answers (1)

Josue Yeray
Josue Yeray

Reputation: 1163

In Windows Phone, you have a restriction per application of one push channel. If you want to change the name, uninstall the app from the device/emulator and make the deployment again. It should work.

Upvotes: 1

Related Questions