Registering a device within Notification Hubs
To be able to send a notification, you have to register a device in the PNS. Without using a service such as Notification Hubs, you would have to know the individual logic of each PNS and store device data somewhere. Such a challenge would be problematic in most cases, as you usually do not want to handle external dependencies by yourself; rather, your aim is to simplify the overall system logic. In this section, you will learn how device registration is handled in Notification Hubs and how to monitor it.
Notification Hubs device registration
When you register a device in Notification Hubs, you are associating it with a template of a notification and tag. To create such a link, you need a PNS handle, which can be understood as an ID of a specific vendor (such as a token or a Google Cloud Messaging (GCM) registration ID). In fact, there are two ways to register a device, as outlined here:
- Use registration: Where you pass an...