Sending notifications with PNS
Using the native notification providers, the application backend can send notifications to target devices if the target device has already opened a notification channel. While the implementation of this process highly depends on the platform at hand, at a high level, the registration and notification flow are very similar on all of the PNSes.
The device should start this flow by registering itself with the PNS and retrieving a so-called PNS handle. This handle can be a token (for example, APNS) or a simple URI (for example, WNS). Once the PNS is retrieved, it should be delivered to the backend service as a calling card, as shown in step 2 of the following diagram:
When the backend service wants to send a notification ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access