InvalidToken from Azure Notification Hub (WNS)

Ken Fodero 1 Reputation point


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?


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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 12,646 Reputation points Microsoft Employee

    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.

    0 comments No comments