本文介绍了WP8.1上的MPNS不会触发ChannelUriUpdated和HttpNotificationChannel.ChannelUri始终为null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去几天  MPNS频道创建已停止为我的应用程序工作。为了解决问题,我尝试使用"Toast Notification Sample"和"Toast Notification Sample"。来自MSDN(http://code.msdn.microsoft.com/windowsapps/Toast-Notification-Sample-fb20ae13)
- 它在我的1020上使用8.1和模拟器8.1重现问题,但在8.0设备上正常工作和8.0模拟器。请注意我使用示例代码"按原样"。并且仿真器在同一个本地网络上的同一台开发机器上测试(有线
LAN)。使用WiFi和蜂窝网络对物理设备进行测试,结果一致。

Hi, the last couple of days MPNS channel creation stopped to work for my app. To troubleshoot the problem I tried to use "Toast Notification Sample" from MSDN (http://code.msdn.microsoft.com/windowsapps/Toast-Notification-Sample-fb20ae13) - It reproduces the problem on my 1020 with 8.1 and on emulator 8.1, but works correctly on 8.0 device and 8.0 emulator. Please note I use the sample code "as is" and the emulators tested on the same dev machine on the same local network (wireline LAN). The physical devices are tested using both WiFi and Cellular network with consistent results.

如何排除故障? 

How can I troubleshoot what is wrong? 

谢谢

Thanks

Meir

Meir

Meir

推荐答案

我试用了你引用的样本,当我发现它时能够得到一个ChannelUri在8.1仿真器和设备上测试它。 (注意:我确实必须将项目升级到8.0,因此它将在VS2013中构建。)

I tried out the sample you referenced and it was able to get a ChannelUri when I tested it on an 8.1 emulator and device. (Note: I did have to upgrade the project to 8.0 so it would build in VS2013.)

仅供参考:当使用MPNS的应用程序在Windows Phone 8.1上运行时,HttpNotificationChannel.Find( )函数将始终返回null。

FYI: When an app using MPNS is running on Windows Phone 8.1, the HttpNotificationChannel.Find() function will always return null.


这篇关于WP8.1上的MPNS不会触发ChannelUriUpdated和HttpNotificationChannel.ChannelUri始终为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 23:21