Skip to content

Commit 4f88877

Browse files
authored
Merge pull request #108013 from sethmanheim/reg
Adding valid cross link
2 parents e557015 + 4ad9c04 commit 4f88877

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/notification-hubs/notification-hubs-push-notification-registration-management.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.workload: mobile
1313
ms.tgt_pltfrm: mobile-multiple
1414
ms.devlang: dotnet
1515
ms.topic: article
16-
ms.date: 12/17/2019
16+
ms.date: 03/17/2020
1717
ms.author: sethm
1818
ms.reviewer: jowargo
1919
ms.lastreviewed: 04/08/2019
@@ -29,7 +29,7 @@ Device registration with a Notification Hub is accomplished using a **Registrati
2929

3030
### Registrations
3131

32-
A registration associates the Platform Notification Service (PNS) handle for a device with tags and possibly a template. The PNS handle could be a ChannelURI, device token, or FCM registration id. Tags are used to route notifications to the correct set of device handles. For more information, see [Routing and Tag Expressions](notification-hubs-tags-segment-push-message.md). Templates are used to implement per-registration transformation. For more information, see [Templates](notification-hubs-templates-cross-platform-push-messages.md).
32+
A registration associates the Platform Notification Service (PNS) handle for a device with tags and possibly a template. The PNS handle could be a ChannelURI, device token, or FCM registration ID. Tags are used to route notifications to the correct set of device handles. For more information, see [Routing and Tag Expressions](notification-hubs-tags-segment-push-message.md). Templates are used to implement per-registration transformation. For more information, see [Templates](notification-hubs-templates-cross-platform-push-messages.md).
3333

3434
> [!NOTE]
3535
> Azure Notification Hubs supports a maximum of 60 tags per device.
@@ -115,7 +115,7 @@ In this case, you use only Listen rights to access your notification hubs from t
115115
Registering from the device is the simplest method, but it has some drawbacks:
116116

117117
- A client app can only update its tags when the app is active. For example, if a user has two devices that register tags related to sport teams, when the first device registers for an additional tag (for example, Seahawks), the second device will not receive the notifications about the Seahawks until the app on the second device is executed a second time. More generally, when tags are affected by multiple devices, managing tags from the backend is a desirable option.
118-
- Since apps can be hacked, securing the registration to specific tags requires extra care, as explained in the section “Tag-level security.
118+
- Since apps can be hacked, securing the registration to specific tags requires extra care, as explained in the article [Security](notification-hubs-push-notification-security.md).
119119

120120
### Example code to register with a notification hub from a device using an installation
121121

@@ -166,7 +166,7 @@ var channel = await PushNotificationChannelManager.CreatePushNotificationChannel
166166
string installationId = null;
167167
var settings = ApplicationData.Current.LocalSettings.Values;
168168

169-
// If we have not stored an installation id in application data, create and store as application data.
169+
// If we have not stored an installation ID in application data, create and store as application data.
170170
if (!settings.ContainsKey("__NHInstallationId"))
171171
{
172172
installationId = Guid.NewGuid().ToString();
@@ -208,15 +208,15 @@ These methods create or update a registration for the device on which they are c
208208
// Initialize the Notification Hub
209209
NotificationHubClient hub = NotificationHubClient.CreateClientFromConnectionString(listenConnString, hubName);
210210

211-
// The Device id from the PNS
211+
// The Device ID from the PNS
212212
var pushChannel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
213213

214-
// If you are registering from the client itself, then store this registration id in device
215-
// storage. Then when the app starts, you can check if a registration id already exists or not before
214+
// If you are registering from the client itself, then store this registration ID in device
215+
// storage. Then when the app starts, you can check if a registration ID already exists or not before
216216
// creating.
217217
var settings = ApplicationData.Current.LocalSettings.Values;
218218

219-
// If we have not stored a registration id in application data, store in application data.
219+
// If we have not stored a registration ID in application data, store in application data.
220220
if (!settings.ContainsKey("__NHRegistrationId"))
221221
{
222222
// make sure there are no existing registrations for this push handle (used for iOS and Android)
@@ -324,7 +324,7 @@ var reg = new WindowsRegistrationDescription(channelUri, tags);
324324
// Create
325325
await hub.CreateRegistrationAsync(reg);
326326

327-
// Get by id
327+
// Get by ID
328328
var r = await hub.GetRegistrationAsync<RegistrationDescription>("id");
329329

330330
// update

0 commit comments

Comments
 (0)