A stored notification channel URI may go stale while my app is inactive -- i.e., stopped, tombstoned or dormant. What is the best practice for updating the channel URI with my web service after a period of inactivity?
Various articles on the web mention "retrieving" the URI in order to send it to the web service. But as far as I can tell, the only way for my app to learn the channel URI is via the ChannelUriUpdated
event on HttpNotificationChannel
, and raising that event is not under my control. MPNS may have changed the URI while my app was inactive. If the app could not respond to ChannelUriUpdated
, the URI would then be stale in both my app and my web service.
Perhaps a channel returned by HttpNotificationChannel.Find
is guaranteed to always have an up-to-date channel URI?