Apple push feedback service with new token based http2 requests

If am using the new HTTP2 based APNS requests with provider tokens do I still need to be calling the push feedback service to get unistalled devices? and if so do I need to use a certificate based request for the feedback service call?

thanks

Replies

The feedback service no longer exists in the HTTP/2-based APNs API. Instead, the APNs server will respond to a request to send a notification to a device that has uninstalled the destination app with an HTTP/410 response and a rejection reason of "unregistered," along with a timestamp at which the device token stopped being valid. Please see Sending Notification Requests to APNs for details.


So, in short, no, you definitely don't need to be calling the feedback service if you're using the HTTP/2-based APNs API.

That isn't the behavior I'm seeing — the http/2-based service sends errors in about the same situations the legacy service did, and uninstalled apps / expired tokens still return "success" from the initial submission and cause a token to show up on the feedback service, regardless of which submission service they were submitted with.

Yeah I'm seeing the behavior @wiml described
Tokens for uninstalled apps will return "success" for a while, until at some point the system decides it is OK to start returning 410.
This can take several days after a notification is sent to a token after the app has been uninstalled.

This is to prevent tracking of user behavior about installing/uninstalling apps, and is by design.

It is acceptable to send notifications to these tokens until you receive a 410, after which you can delete the token from your database.
  • Unfortunately, it even returns "200" or success for a devicetoken from a device that uninstalled the app 2 years ago.

    So basically there is no way to know if the user uninstalled the app or not

Add a Comment