在windows phone 8中调用voip代理,服务器需要通过MPNS发送带有后续有效负载的类型4原始通知.
HttpWebRequest sendNotificationRequest = (HttpWebRequest)WebRequest.Create(subscriptionUri);
sendNotificationRequest.Method = "POST";
// We will create a HTTPWebRequest that posts the raw notification to the Microsoft Push Notification Service.
// HTTP POST is the only allowed method to send the notification.
// Create the raw message.
string rawMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<root></root>";
// Sets the notification payload to send.
byte[] notificationMessage = Encoding.Default.GetBytes(rawMessage);
// Sets the web request content length.
sendNotificationRequest.ContentLength = notificationMessage.Length;
sendNotificationRequest.ContentType = "text/xml";
sendNotificationRequest.Headers.Add("X-NotificationClass", "4");
using (Stream …Run Code Online (Sandbox Code Playgroud) 我已经在我的Windows Phone 8应用程序中实现了快速简历,并且除了以下情况外,它在每种情况下都能正常工
脚步:
1)电话被密码锁定
2)收到吐司.
3)点击吐司.
4)应用程序已激活.
5)最后在backstack上的页面打开了重置状态.
6)没有更多的导航
在快速恢复应用程序应该再接收一个带有深层链接的导航,在这种情况下缺少的吐司.
请在这里找到样品.