开发者

MPNS URI timeout

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 开发者_Go百科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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜