简体   繁体   中英

Azure notification hubs - Windows (WNS) error - Invalid WNS credentials

I am trying to setup Windows (WNS) notifications based on following Microsoft tutorial: Send notifications to Universal Windows Platform apps using Azure Notification Hubs

System returns error at step 3 in chapter Configure WNS settings for the hub . Relevant screenshots below. I used fresh Package SID created yesterday. Also, security key was properly created; as defined in tutorial.

Error message: Error updating notification hub. Error. BadRequest. Message: **Invalid WNS credentials**. Error updating notification hub. Error. BadRequest. Message: **Invalid WNS credentials**.

App registration in Azure is visible under - Applications from personal account .

On Partner Center portal I have active individual developer account that was used to register application (MSIX or PWA app) and get Package SID .

Followed all steps in tutorial. Triple checked everything. No other errors received. Account that I used to go through the tutorial has OWNER permissions on Azure subscription where Notification Hub is located. Security and access rights shouldn't be the problem.

Any thoughts where is the problem? And where can I find more details about actual error?

screenshot-ErrorMessage

screenshot-App registration

screenshot-IntegrationAssistantSuggestions

Found solution.

Package SID should be in the format: ms-app://Sx-xx-x-xxxxxxxxxxxxxx....

And not in the format Sx-xx-x-xxxxxxxxxxxxxx.... (this is how it looks in partner center portal)

Resolved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM