2012-05-24 32 views

回答

2

通知URL應該*在您的應用重新啓動時保持靜態。

*其他因素可能會發揮作用,例如卸載和重新安裝可能會導致更改。

2

它應該保持不變,如果你打開/關閉你的應用程序。我有一個應用程序在市場上使用推送通知幾個月,而我的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 
} 
+0

有很多的事情這可能會迫使其改變但沒有發佈,明確的清單。 –

相關問題