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.

We had multiple reports of this exact issue as well from Opal users, we didn't open a bug report because we weren't able to reproduce the issue on our own devices 😢

I would also be very interested if this is a bug on our side (using the API wrong) or if this is something on Apple’s side.

Seeing multiple reports on this makes me think it’s more related to an Apple bug instead of individual bugs on our ends...

How are you identifying which token belongs to which application as I'm not getting any bundle name or localName from the activity Picker selected in my FamilyActivityPicker.

Is there any update on this, Thomas?

Seems like a pretty serious issue, but no feedback / input from Apple so far!

We also have this issue and it's happening on iOS 17.6 too, so apparently it's not resolved with the OS update unfortunately.

Hello everyone, I wanted to get back to this, it’s October now and we’ve seen some new iOS betas.

Did anyone of you find a workaround for this issue? I’m on the latest iOS 18.1 beta and I can still reproduce this problem every day.

As suggested by Apple in June, I have:

  • Filed a radar
  • Created a sample project to reproduce
  • Filed a DTS ticket

Even after 5 months: no responses.

I am very frustrated by their non-existing help with this issue.

We have confirmed this bug is still present. Please follow up in your bug report.

We have confirmed this bug is still present. Please follow up in your bug report.

Hello, is there an update on this? I am carefully optimistic that this has been resolved on 18.3 or 18.4. But would be great to get official confirmation. No news on the bug reports yet :/

We have confirmed this bug is still present. Please follow up in your bug report.

Bug is still present in latest iOS 18.4 beta 4.

Hello, I am sad to announce that the bug is still present on iOS 18.5 beta 1.

when will this finally be addressed?

it’s been a year already since this bug has been introduced.

does anyone actually look at the Radars?

here is my feedback: FB14082790

We have confirmed this bug is still present. Please follow up in your bug report.

We have confirmed this bug is still present. Please follow up in your bug report.

Hello @Engineer!

It’s now 8 months later after you suggested we should follow up with our bug reports. Could you please check that my bug report is with the correct team? So far I have not received ANY feedback / commend / workaround / bug fix proposal which is concerning: FB15500649

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.

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.

Hey Quinn!

Thanks a lot for the update and confirming that this indeed a bug and sharing a user-level workaround!

Do you have any more information about the workaround? Because, as @thomas_maht has mentioned, the bug re-appears after a couple of days and that’s just too much to ask users to re-select apps every couple of days.

They rather rage-delete out apps (and blame us 3rd party developers for being incompetent), and it’s just impossible to communicate that Apple has not fixed this bug that exists for more than 18 months.

My personal device is affected by this as well, I’m happy to fly to Cupertino and reproduce the issue for the engineers if that would help. This has to be fixed with iOS 26!

Thanks a lot for your help!

the bug re-appears after a couple of days

Oh, I missed that. Yeah, that’d be annoying.

My personal device is affected by this as well

So, just be clear, the problem is reoccurring every couple of days on your personal device?

Share and Enjoy

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

Thanks for getting back to me on this!

So, just be clear, the problem is reoccurring every couple of days on your personal device?

Yes, I can temporarily fix this by re-selecting apps / tokens from the FamilyActivityPicker, but then after a couple of days the tokens change again and the problems come back (it’s very inconsistent in that regard: sometimes it’s just a couple of minutes / hours / days until the problems resume).

In my feedback request I have a minimal sample project and a video that shows the bug in action on my personal device: FB15500649

Tokens change without reason after updating to iOS 17.5.1
 
 
Q