WindowsNotifications / alternate-push-channel

How to use the alternate push channel for Windows apps
MIT License
3 stars 1 forks source link

Received unexpected response code: 401 #4

Open tokenDeveloper2020 opened 1 year ago

tokenDeveloper2020 commented 1 year ago

It was working fine few months back. Now when trying to run "AlternatePushChannel.SampleApp" its throwing error

at _webPushClient.SendNotificationAsync( getting error Headers: {x-wns-error-description: AppId is not allowed to post Webpush notifications to WNS Strict-Transport-Security: max-age=31536000; includeSubDomains Date: Fri, 01 Jul 2022 03:16:44 GMT x-wns-status: dropped x-wns-notificationstatus: dropped ms-cv: eXJI1AUNQ0KwOrCZLNPfvQ.0 x-wns-debug-trace: BL2PEPF0000958B x-wns-msg-id: 2A2C4C264C920F83

Received unexpected response code: 401

tokenDeveloper2020 commented 1 year ago

Above error comes if we change Identity Name and publisher <Identity Name="428dea2e-2801-47b4-ba32-82b3462b712e" Publisher="CN=aleader" Version="1.0.0.0" />

nbevans commented 2 weeks ago

https://learn.microsoft.com/en-us/answers/questions/1695964/wns-push-notification-fails-with-unauthorized-appi