DeviceTokenNotForTopic

Some users couldn't receive push notifications, and APNS returned a 'DeviceTokenNotForTopic' error. Upon validation using Apple's tool, I found that some tokens are identified as VoIP push tokens, and some as Live Activity (LA) push tokens.

When attempting to send a normal alert push using these VoIP/LA push tokens, it didn't work and returned a 'DeviceTokenNotForTopic' error.

These tokens were obtained from Apple's delegate function 'didRegisterForRemoteNotificationsWithDeviceToken.' It's unexpected to receive VoIP/LA push tokens from this event, but this issue is occurring, and I've observed it specifically in iOS 17 users.

This problem is not universal and is happening only for some users. Please take note that our app support VoIP Push, Live Activity Push and Normal Push notification. Could this be an iOS 17 bug? Any advice on this matter would be appreciated.

Thanks.

Replies

While it is possible that this could be a yet unencountered bug in iOS 17, Occam's razor would say that it is also likely an error in your token management, if you are also getting all those kinds of tokens in your app.

We can have a deeper look into the tokens, etc. and if you would like us to do that please open an Technical Support Incident at https://developer.apple.com/support/technical/ and share with us the tokens, and when (timestamp with timezone) you obtained them via the didRegisterForRemoteNotificationsWithDeviceToken() callback. And when you tried to send those poses (again timestamp with timezone), and we will look what those tokens are about. We would need recent occurrence of the token being obtained and the error received (within at most several days of your support ticket)