How Screen Time API works with family authentication failed with error = 2

I've been trying to get something to work with the Screen Time API, but almost everything related to it is unimplemented.

I checked following links

Device Activity https://developer.apple.com/documentation/DeviceActivity

Managed Settings https://developer.apple.com/documentation/ManagedSettings

Family Control https://developer.apple.com/documentation/FamilyControls

Checked videos https://developer.apple.com/videos/play/wwdc2022/110336/

Problems I faced

  • FamilyActivityPicker does not list installed apps on either of the guardian's or child's devices, it only lists the categories.
  • There is no way to allow setting up of restrictions for individual kids, if we have many kids in family.

If anyone gone through the same problem please upvote or if anyone has a solution please share

Thanks

Is the child device authorized with FamilyControls? Meaning, did you call requestAuthorization(for: .child) on a device that is signed into a child's iCloud account?

Yes, the picker will list individual applications. You have to use them first for them to show up Yes, you can set up different restrictions for individual devices.

While I'm not presenting a "solution", it should help with perseverance.

There was the same situation when i call requestAuthorization(for: .child). And it not displays the authentication sheet when my app first launches call this method. But when i change the argument "child" to "individual" and call the method there displays the authentication sheet. Does anyone know why this is happening? Thanks for your answer.

How Screen Time API works with family authentication failed with error = 2
 
 
Q