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 ...
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