Difference between Push delivery metrics in APNs console vs. 410 code for unregistered tokens

Hi there,

We’re using APNs Push delivery metrics, which provide a breakdown including metrics like Received by APNs, Delivered to Device, and Discarded - Token Unregistered.

To track unregistered tokens on our end, we also monitor the 410 error responses from APNs, which typically indicate that a token is no longer valid. However, we’ve noticed a discrepancy: the number of 410 errors we receive is much lower than the Discarded - Token Unregistered count shown in the APNs console.

Is this difference expected? Specifically, does APNs sometimes know that a token is unregistered but still return a success status to us when we attempt to send a push to that token?

Thank you for any insights you can provide!

Answered by Engineer in 814086022

Yes, the difference is expected because APNs will know the token has been unregistered, but still return a success status.

To avoid developers from detecting and tracking user behavior around installations and uninstallations, APNs will start returning a 410 status for these tokens on a fuzzy schedule. This schedule is not documented, and can change at any time. This is for protecting the users’ privacy, and is by design.

It is OK to keep sending notifications to an unregistered token until you receive a 410 status.


Argun Tekant /  DTS Engineer / Core Technologies

Accepted Answer

Yes, the difference is expected because APNs will know the token has been unregistered, but still return a success status.

To avoid developers from detecting and tracking user behavior around installations and uninstallations, APNs will start returning a 410 status for these tokens on a fuzzy schedule. This schedule is not documented, and can change at any time. This is for protecting the users’ privacy, and is by design.

It is OK to keep sending notifications to an unregistered token until you receive a 410 status.


Argun Tekant /  DTS Engineer / Core Technologies

Difference between Push delivery metrics in APNs console vs. 410 code for unregistered tokens
 
 
Q