Two tokens on device (one is not working, but valid)

Hello!


Recently I discovered, that one of our users with one device has two registered apns tokens, and both treated as valid by APNS server.

I sent two notifications using a local tool. Both notifications were successfully pushed without any "Invalid Token" response from APNS server.

Both notifications are delivered to the device and only one of them is shown (that's good). For another one I can see following logs in Console:



default
12:16:09.461559 +0300
apsd
2017-09-08 12:16:09 +0300 apsd[84]: isAppSpecificTokenValid? <_token_> found cached token NO
default
12:16:09.462125 +0300
apsd
2017-09-08 12:16:09 +0300 apsd[84]: Received incoming push notification for topic: <_app_id_> but for a completely unknown token <_token_>
default
12:16:09.462632 +0300
apsd
2017-09-08 12:16:09 +0300 apsd[84]: <APSCourier: 0x1002025e0>: Responding with REMOVED status for message received with topic: 'app_id' to device token (instead of per-app token)


Is it ok that this token still alive (more than one day) and Apple service does not respond with "Bad token" response?

Because we sent more notifications than needed and neither server nor client can't find out that this token is obsolete.

Two tokens on device (one is not working, but valid)
 
 
Q