Timeout when trying to get WNS channel

ludo pierre 26 Reputation points
2021-05-04T11:22:58.43+00:00

Hello,
I am trying to use Windows Notification Service behind a proxy.
i opened route described by Microsoft to use the service

<CloudServiceDNS>
<DNS FQDN="*.notify.windows.com"/>
</CloudServiceDNS>
<ClientDNS>
<DNS FQDN="*.wns.windows.com"/>
<DNS FQDN="*.notify.live.net"/>
</ClientDNS>
<CloudServiceIPs>

but when i try to make

channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();

I have an timeout exception
My application is a uwp application, created based on tutorials, enrolled with ms store and all is ok with it on a personnal laptop.

When i make a trace on my proxy, it seems windows try to access to https://login.live.com/ppsecure/deviceaddcredential.srf.

My question is: Is login.live.com access mandatory to get a wns channel?
If not, how can i resolve this channel?

Thanks by advance for your help

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
300 questions
Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,861 Reputation points
    2021-05-05T06:21:53.42+00:00

    Hello, Welcome to Micorosoft Q&A,

    My question is: Is login.live.com access mandatory to get a wns channel?

    It's necessary to get the channel, and https://login.live.com/ppsecure/deviceaddcredential.srf looks like redirect uri. Derive from Windows Push Notification Services (WNS) overview document, https://login.live.com is the host that use to receive authentication request for wns.

    POST /accesstoken.srf HTTP/1.1  
     Content-Type: application/x-www-form-urlencoded  
     Host: https://login.live.com  
     Content-Length: 211  
       
     grant_type=client_credentials&client_id=ms-app%3a%2f%2fS-1-15-2-2972962901-2322836549-3722629029-1345238579-3987825745-2155616079-650196962&client_secret=Vex8L9WOFZuj95euaLrvSH7XyoDhLJc7&scope=notify.windows.com  
    

    For your scenario, we suggest you add above host address in the white list.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful