Tokens change without reason after updating to iOS 17.5.1

Some of our users encounter an issue after updating their iPhone/iPad to iOS 17.5.1.

The tokens passed in the Shield Configuration extension don't match the tokens they selected in my app using the FamilyPicker before updating to iOS 17.5.1. It seems the tokens changed for no reason. My app can't match the token from the ShieldConfigurationDataSource to any tokens stored on my end, causing my shield screens to turn blank. The same applies to tokens in the Device Activity Report extension.

The only workaround I've found is to tell affected users to unselect and reselect apps and websites to block in my app. This gets them new tokens from the FamilyActivityPicker, which solves the issue. However, for some users, the bug reoccurs a few days later. Tokens seem to change again, causing the same issue in the Shield Configuration extension.

I am not able to reproduce the issue on my test devices so I have no sysdiagnose to attach. However, this issue is affecting other screen time apps:

A change in iOS 17.5.1 must have triggered this behaviour. Could an Apple engineer give us any updates on this?

Answered by DTS Engineer in 847740022

Different DTS Engineer here, btw.

Unfortunately I don’t have anything particularly useful to share here. As far as we can tell this is a bug. There’s no code-level workaround, because tokens are opaque by definition. The user-level workaround was mentioned by thomas_maht in their original post. It’s annoying, but AFAICT it works.

We’re using FB14111223 to track this. I had a quick look through all the bugs mentioned here, and it seems that all but one [1] have been marked as a dup of that lead bug.

If you want to be notified if/when there’s a fix, feel free to file a bug and ask that it be dup’d to that bug.

Beyond that, I’m outta ideas )-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] And I’m working to fix the state of that last one.

On iOS 26.4.2 and I have noticed a similar bug only present in parent/guardian or organizer apple family accounts. It does not happen to adult accounts and I have not checked child account yet.

I filter user selected applications in the device activity report extension and a couple times a day it will just fail to match any tokens. Only way to fix it is to open a FamilyActivityPicker and close it (Works even with one that is not related to the FamilyActivityPicker the user uses to filter the applications in the device activity report).

Works even with one that is not related to the FamilyActivityPicker the user uses to filter the applications in the device activity report

interesting! does that mean having a small (invisible) FamilyActivityPicker in our UI hierarchy fixes this issue?

Tokens change without reason after updating to iOS 17.5.1
 
 
Q