Delivering a Push Notification
To deliver a push notification to a device, a server you control (like CocoaServer) must send a notification package to Apple’s push notification server. Then Apple’s push notification server delivers the notification to the device. The server you control is called the provider. The notification package contains the notification the user will eventually receive along with the device token and some other administrative information. The Apple server then uses the device token to route the notification to the correct device.
Getting the token to the provider
Before the provider can send the notification package to Apple’s push notification server, it needs to know the device token. You’re going to have Notified send ...
Get iOS Programming: The Big Nerd Ranch Guide, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.