Search code examples
windows-10-universalwns

CreatePushNotificationChannelForApplicationAsync gets 0x880403E8


Trying Windows Notification Service on the windows 10 desktop.

This line gets 0x880403E8 on "Local Machine" but works perfectly on "mobile emulator".

var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();

Turning off windows firewall didn't have any affect. What could be the reason?


Solution

  • I cannot reproduce your issue when calling CreatePushNotificationChannelForApplicationAsync to create a channel on my local machine which OS version is build 14393.

    You are getting the Ox880403E8 error because the device is not connected to WNS server. There are a number of connectivity failures which get lumped together under the same error message. While you have internet connectivity in general, for some reason you weren't able to get to the channel server. So please make sure the device connected to the internet. If you're developing in an enterprise make sure they're not blocking outbound connections. More details please reference this thread.

    More detail about WNS please reference this article.