For the More Curious: The Feedback Service

Not every user will keep your application forever. If a user uninstalls your application, you should no longer send notifications to that device. To determine if a user has uninstalled your application, Apple has a feedback server that spits out device tokens for uninstalled applications. You simply hook a read stream to this server, and it will fire device tokens at you.

This read stream needs to be configured with the same SSL certificate used to push notifications. The host for the feedback service is located at feedback.push.apple.com, port 2196 (The development server is feedback.sandbox.push.apple.com). When a user uninstalls an application, the data you receive on the read stream will be 38 bytes ...

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.