Will uri change every time the application restarts on a Windows phone?

I want to develop a Windows phone application that uses push notification. I know that the first thing my application needs to do is register with mspn and get uri. My doubt is whether the uri will constantly change every time the application closes and then starts again.

+3
source share
2 answers

The notification URL should remain stationary during the restart of your application.

* Other factors may arise, such as removal and reinstallation, are likely to lead to a change.

+2
source

, / . push- , URI . MSDN ChannelUriUpdated , ( , , ):

// Register for all the events before attempting to open the channel.
pushChannel.ChannelUriUpdated += new EventHandler<NotificationChannelUriEventArgs>(PushChannel_ChannelUriUpdated);


void PushChannel_ChannelUriUpdated(object sender, NotificationChannelUriEventArgs e)
{
    // e.ChannelUri contains your updated notification channel - you can pass this to your web service
}
+2

All Articles