English 中文(简体)
每次在窗口电话中重新启动一个应用程序时, URI 会更改吗?
原标题:will uri change every time an app is restarted in windows phone?

我想开发一个使用推键通知的窗口电话应用程序。 我知道首先我的应用程序应该做的是注册到 mspn 并获得 uri 。 我怀疑, 每当应用程序关闭并重新开始时, 会继续变化 。

问题回答

通知 URL * 相对于您应用程序的重新启动, 通知 URL 应保持静态 。

* 其他因素可能起作用,例如解除安置和重新安置可能会导致变化。

如果您打开/关闭您的应用程序, 程序应该保持不变 。 我已经在市场上用推推通知应用了几个月了, 我的 URI 还没有改变 。 我跟踪 < a href=" http://msdn. microsoft. com/ en- us/library/ hh202967% 28v=vs. 92%.29. aspx" rel = "nofollow" >MSDN , 并订阅 ChannelUriUriUnded 事件, 以防频道真的改变( 我不清楚它会改变的原因 ):

// 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
}




相关问题
System.Json namespace missing from Windows Phone 7

During a Mix10 presentation, the presenter (Charlie Kindel) said that when writing Silverlight based apps for WP7 you get all of Silverlight 3.0 with some of Silverlight 4.0 mixed in. Why then is ...

Will Windows Phone 7 Support Multitasking third party apps

Obviously it s early days, I do not know whether this is information that is in the public domain or not yet, but... I have trawled through some of this site - http://www.windowsphone7series.com/ but ...

Windows Series Phone 7 "Cloud"

I have been reading up on "Cloud computing" on here and still not getting it. Basically I want to develop for the WP7 http://msdn.microsoft.com/en-us/library/ff402531%28v=VS.92%29.aspx#...

Windows Phone 7 Tab Pages (page cycle)

I know.. I know, it s only a few hours old. But how the hell do you get the little page tabbing/cycle (forgot what the official name is) on the top of the page under the app title. MIX Keynotes made ...

Recording audio from the microphone in Windows Phone 7 Series

I m wondering if anyone has any code samples or links to documentation that demonstrate how to capture audio from the device s microphone on the new Windows Phone Series 7. I ve recently downloaded ...

Resources for Windows Phone 7 development [closed]

Windows Phone 7 has been unveiled and MS have announced all details of the development chain at the Mix10 conference. So this could be a good starting point/collection of online resources as they ...

热门标签