I am using the Microsoft Push Notification Service to send push notifications, and i am using the unique device id as the channel name to insure a unique URI for the application.
byte[] myDeviceID=(byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId");
string channelName = Convert.ToBase64String(myDeviceID);
The problem is that when i don’t access the URI for sometime (hours), i get a new URI for the same channel name and this causes big problems.
So is there a timeout for the URI and if so what is it??
Yes, sometimes the Channel URI is updated. Therefore, you need to properly handle HttpNotificationChannel.ChannelUriUpdated. Whenever an application is running, there is no guarantee that the single opened URI will be persistent.