InvalidToken from Azure Notification Hub (WNS)

Ken Fodero 1 Reputation point
2020-05-29T14:49:10.587+00:00

Hi,

I am trying to use Azure Notification Hub to send WNS notifications. My send is unsuccessful, and in the Notification Outcome, I receive an InvalidToken error. Looking through the ANH docs, I'm unable to find the details on causes of an "InvalidToken" error.

Is there documentation/guidance somewhere with additional details on the possible root causes of the various unsuccessful NotificationOutcomes?

Thanks

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.
258 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,191 Reputation points
    2020-06-01T10:21:06.13+00:00

    Thanks for asking question! If I have understood right, you are using Azure Notification Hub to send WNS notification. As a prerequisite an active Windows Store account is required confirming that the Get notifications from apps and other senders setting is enabled.

    To add to this if no notifications are reaching the device, the first step is to ensure the correct credentials are configured in the Notification Hub. The credentials must match the application that's created under a platform-specific developer account. This corresponds to the credentials received in step four of the 'Create an app in Windows Store' section in the tutorial.

    Please verify the application secrets password and the package security identifier (SID) have been added to the portal correctly.

    You may refer to below doc links for more details on this.

    https://learn.microsoft.com/en-us/previous-versions/windows/apps/hh465407(v=win.10)?redirectedfrom=MSDN

    https://learn.microsoft.com/en-us/previous-versions/windows/apps/hh913756%28v%3dwin.10%29#authenticating-your-cloud-service

    https://learn.microsoft.com/en-us/previous-versions/windows/apps/hh868245(v=win.10)?redirectedfrom=MSDN

    0 comments No comments