Request targets an app that is not in allowed receiving apps list by WNS

Michał Łeptuch 6 Reputation points
2024-05-30T16:48:23.7+00:00

Hello,

I have a problem during sending WNS raw notifications to my app on client's computers.

I receive this error sometimes, but not for all my clients:

2024-05-29 19:16:06.244 +02:00 [WRN] X-WNS-Debug-Trace: BY3PEPF000195A1
2024-05-29 19:16:06.245 +02:00 [WRN] X-WNS-Error-Description: Request targets an app that is not in allowed receiving apps list by WNS.
2024-05-29 19:16:06.245 +02:00 [WRN] X-WNS-Msg-ID: 3CEB16B369BFE024
2024-05-29 19:16:06.245 +02:00 [WRN] WWW-Authenticate: 

My app is Windows App SDK app, and I followed this arcticle: https://video2.skills-academy.com/en-us/windows/apps/windows-app-sdk/notifications/push-notifications/push-quickstart.

Everything worked fine until the date in log. It was the first time when error occurred.

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
743 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,745 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,071 Reputation points Microsoft Vendor
    2024-05-31T02:14:03.5066667+00:00

    You can check the document https://video2.skills-academy.com/en-us/windows/apps/design/shell/tiles-and-notifications/troubleshoot-notifications if it's helpful.

    While if the issue has a big impact on you, you can open a Windows App SDK incident at https://developer.microsoft.com/en-us/windows/support/?tabs=Contact-us so that our engineer can work with you closely and please choose 'WinUI 3' for this issue. In-addition, if the support engineer determines that the issue is the result of a bug the service request will be a no-charge case and you won't be charged.

    0 comments No comments

  2. Neuvi Jiang 465 Reputation points Microsoft Vendor
    2024-05-31T07:02:49.9666667+00:00

    Hi Michał Łeptuch,

    Thank you for posting in the Q&A Forums.

    This error means that your request targets an app that is not in the allowed receiving apps list by WNS. This can happen due to a number of reasons. Here are some possible causes and solutions:

    1. Application not properly registered

    Make sure your application is properly registered and able to receive WNS notifications.

    Check the registration status of your application in the Windows Developer Center.

    Verify that the application Package Family Name (PFN) is correct. 2.

    1. Notification channel is expired or invalid

    The WNS channel may have expired or become invalid.

    Re-request a new channel URI and try sending the notification again.

    Verify that your application handled the change in the channel URI and updated the records on the server.

    1. Privilege Issues

    Ensure that your application is authorized to receive WNS notifications.

    Verify that your application's WNS notification key and SID (Security Identifier) are properly configured on your server.

    Check that your server is using the correct authentication tokens.

    1. Configuration errors

    Check your application's configuration and notification sending logic.

    Verify that your application is not misconfigured when receiving notifications.

    Verify that all parameters in the notification request are correct.

    Best regards

    NeuviJ

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments