Push message for Windows Phone (WNS): Blocked channel URL

1.2k Views Asked by At

I have a Windows Phone application running on a Windows Phone 8.1 device, and I am using Windows Push Notification Services (WNS) to deliver a push message to the device. Delivering push messages has worked for approximately 8 days, until I received WNS headers in the responses similar to these:

X-WNS-NOTIFICATIONSTATUS: dropped
X-WNS-STATUS: dropped
X-WNS-ERROR-DESCRIPTION: Blocked channel URL
X-WNS-MSG-ID: 2DC1361376C2827E
X-WNS-DEBUG-TRACE: DB5SCH101121937

I have not changed the push server implementation, nor the code on the Windows Phone device. There was literally no change in the build of either component. I went home at the end of a work day, and the next day, I ran a simple test only to be presented with that particular error. I have tried the following in an attempt to solve the problem:

  • Re-created the channel URL on the device.
  • Re-associated the existing Windows Phone application to the store.
  • Create a new Windows Phone application in Visual Studio (after association to the Store).
  • Re-created the Windows Phone application on the developer portal.
  • Used a different physical device.

Each without success. The documentation regarding WNS is sparse, there are no additional support channels that I am aware of, so I am stumped. What could be causing this particular error "Blocked channel URL", or, how do I solve it?

1

There are 1 best solutions below

2
On

from your windows phone app you need to renew the url for the notification channel, because the url can be valid up to 15 days.

from the microsoft documentation:

"Request a channel each time the app launches. Channel URLs can expire and are not guaranteed to remain the same each time you request one. If the returned channel URL is different than the URL that you had been using, update your reference in your app server."

Edit:

see this link for reference https://msdn.microsoft.com/en-us/library/windows/apps/hh761462.aspx