Skip to content

Commit 732896d

Browse files
authored
Merge pull request #189368 from sethmanheim/uwp
Updates to WNS configuration
2 parents 2de2932 + 517ab71 commit 732896d

File tree

6 files changed

+23
-9
lines changed

6 files changed

+23
-9
lines changed
166 KB
Loading
107 KB
Loading
184 KB
Loading
152 KB
Loading

articles/notification-hubs/notification-hubs-windows-store-dotnet-get-started-wns-push-notification.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ ms.tgt_pltfrm: mobile-windows
1212
ms.devlang: csharp
1313
ms.topic: tutorial
1414
ms.custom: "mvc, ms.custom: devx-track-csharp"
15-
ms.date: 08/23/2021
15+
ms.date: 03/08/2022
1616
ms.author: sethm
1717
ms.reviewer: thsomasu
18-
ms.lastreviewed: 12/04/2019
18+
ms.lastreviewed: 03/08/2022
1919
---
2020

2121
# Tutorial: Send notifications to Universal Windows Platform apps using Azure Notification Hubs
@@ -62,13 +62,27 @@ To send push notifications to UWP apps, associate your app to the Windows Store.
6262
2. Type a name for your app, and then select **Reserve product name**. Doing so creates a new Windows Store registration for your app.
6363

6464
![Store app name](./media/notification-hubs-windows-store-dotnet-get-started/store-app-name.png)
65-
3. Expand **Product management**, select **WNS/MPNS**, and then select **Live Services site**. Sign in to your Microsoft account. The application registration page opens in a new tab. Alternatively, you can navigate directly to the [My applications](https://apps.dev.microsoft.com) page, and select your application name to get to this page.
65+
3. Expand **Product management**, and then select **Product Identity**. Take note of the **Package SID**, **Package/Identity/Name**, **Package/Identity/Publisher**, and **Package/Properties/PublisherDisplayName** values.
6666

67-
![WNS MPNS page](./media/notification-hubs-windows-store-dotnet-get-started/wns-mpns-page.png)
68-
4. Note the **Application Secrets** password as well as both **Package security identifier (SID)** and **Application Identity** under the Windows Store section.
67+
:::image type="content" source="media/notification-hubs-windows-store-dotnet-get-started/product-identity.png" alt-text="Partner center apps":::
68+
4. Under **Product management**, select **WNS/MPNS**, and then select **App Registration portal**. Sign in to your Microsoft account. The application registration page opens in a new tab.
69+
70+
![WNS page](./media/notification-hubs-windows-store-dotnet-get-started/wns-page.png)
71+
72+
5. Under **Essentials**, select **Client credentials: Add a certificate or secret**.
73+
74+
:::image type="content" source="media/notification-hubs-windows-store-dotnet-get-started/hub-azure-portal.png" alt-text="Notification Hub settings on Azure portal":::
75+
76+
6. On the **Certificates & secrets** page, under **Client secrets**, select **New client secret**. After you create a client secret (also called an application secret), take note of it before you leave the page.
77+
78+
> [!WARNING]
79+
> You can only view client secret (application secret) values immediately after creating them. Make sure to save the secret before leaving the page.
80+
81+
:::image type="content" source="media/notification-hubs-windows-store-dotnet-get-started/new-client-secret.png" alt-text="Client secret on portal":::
82+
83+
> [!WARNING]
84+
> The application secret and package SID are important security credentials. Do not share these values with anyone or distribute them with your app.
6985
70-
>[!WARNING]
71-
>The application secret and package SID are important security credentials. Do not share these values with anyone or distribute them with your app.
7286

7387
## Create a Notification Hub
7488

@@ -77,7 +91,7 @@ To send push notifications to UWP apps, associate your app to the Windows Store.
7791
### Configure WNS settings for the hub
7892

7993
1. In the **NOTIFICATION SETTINGS** category, select **Windows (WNS)**.
80-
2. Enter values for **Package SID** and **Security Key** you noted from the previous section.
94+
2. Enter values for **Package SID** and **Security Key** (the **Application Secret**) you noted from the previous section.
8195
3. Click **Save** on the toolbar.
8296

8397
![The Package SID and Security Key boxes](./media/notification-hubs-windows-store-dotnet-get-started/notification-hub-configure-wns.png)
@@ -148,7 +162,7 @@ Your notification hub is now configured to work with WNS. You have the connectio
148162

149163
This action guarantees that the channel URI is registered in your notification hub each time the application launches.
150164

151-
12. Right-click on `Package.appxmanifest` and select View Code (**F7**). Locate `<Identity .../>` and replace the value with the **Application Identity** from the WNS you created [earlier](#create-an-app-in-windows-store).
165+
12. Right-click `Package.appxmanifest` and select **View Code (F7)**. Locate `<Identity .../>` and replace the **Name** value with the **Package/Identity/Name**, and replace its **Publisher** value with the **Package/Identity/Publisher** value from the app you created [earlier](#create-an-app-in-windows-store).
152166

153167
13. To run the app, press the keyboard's **F5** key. A dialog box containing the registration key will display. To close the dialog, click **OK**.
154168

0 commit comments

Comments
 (0)