简体   繁体   English

如何在企业网启用推送通知

[英]How to enable the Push Notification on Enterprise Network

Problem:问题:

Case i) I got an exception while running the below code connected with enterprise network running on virtual machine.案例 i) 在运行与在虚拟机上运行的企业网络连接的以下代码时出现异常。

try
        {  PushNotificationChannel channel = null;
            channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
        }

ie Timeout error while requesting for the Channel URI for push notification.即请求通道 URI 以进行推送通知时出现超时错误。

Case ii) Tried to get the url/server address which might be blocked by the enterprise network while connecting with WNS using fiddler but unfortunately was not successful.案例 ii) 尝试获取在使用 fiddler 与 WNS 连接时可能被企业网络阻止的 url/服务器地址,但不幸的是没有成功。

Note : If I use open network the above code works as charm .注意如果我使用开放网络,上面的代码就像魅力一样。

Looking for help, to fix the push notification issue on enterprise network.寻求帮助,以解决企业网络上的推送通知问题。 Also, if anyone knows how to get the WNS Server path/url which is being called when we requested for push channel uri.此外,如果有人知道如何获取我们请求推送通道 uri 时正在调用的 WNS 服务器路径/url。

I have replied this issue in this thread , you should make sure that your enterprise network do not have any policy which may block the following URLs.我已经在这个帖子里回复了这个问题,你应该确保你的企业网络没有任何可能阻止以下 URL 的策略。 You can contact your network administrator to check the firewall settings.您可以联系网络管理员检查防火墙设置。

1: The URL for Creating Channel URI: notify.windows.com 1:创建频道URI的URL:notify.windows.com

2: The URL for getting token: https://login.live.com/accesstoken.srf 2:获取token的地址: https : //login.live.com/accesstoken.srf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何自动启动推送通知 - How to initiate push notification automatically 是否有一种启用推送通知的方法,以便当用户单击时将其带到与通知显示内容相关的页面? - Is there a way to enable a push notification so that when a user clicks it, it brings them to a page related to what the notification showed? 如何找到企业中的所有网络打印机? - How can I locate all the network printers in the enterprise? 如何在 C# 中禁用/启用网络连接 - How to disable/enable network connection in c# 如何通过C#在Windows 8中禁用/启用网络 - How to disable/enable network in Windows 8 by C# 如何在Windows Phone 7和Sqlite中实现推送通知? - How to implement Push notification in Windows phone 7 and Sqlite? Windows Phone中WHATSAPP推送通知如何工作? - How WHATSAPP push notification works in windows phone? 如何在Windows 8.1中为用户显示推送通知? - How to display push notification for user in windows 8.1? 如何从Windows应用发送推送通知 - How send push notification from windows app 如何在“推送通知”水龙头上导航到特定页面 - How to navigating to a specific page on Push Notification tap
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM