小编Abh*_*hek的帖子

WNS推送Windows Phone Silverlight 8.1中Voip应用的有效载荷

在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)

silverlight voip mpns windows-phone-8.1 wns

5
推荐指数
0
解决办法
167
查看次数

快速应用程序恢复无法在Windows Phone 8上的密码锁定屏幕下工作

我已经在我的Windows Phone 8应用程序中实现了快速简历,并且除了以下情况外,它在每种情况下都能正常工

脚步:

1)电话被密码锁定

2)收到吐司.

3)点击吐司.

4)应用程序已激活.

5)最后在backstack上的页面打开了重置状态.

6)没有更多的导航

在快速恢复应用程序应该再接收一个带有深层链接的导航,在这种情况下缺少的吐司.

请在这里找到样品.

application-lifecycle windows-phone windows-phone-8

5
推荐指数
1
解决办法
82
查看次数