I call the method "AuthorizationCenter.shared.requestAuthorization(for:.child) "in the device of ios16.3. it not displays the authentication sheet when my app first launches call this method. And the FamilyActivityPicker does not list installed apps on either of the guardian's or child's devices, it only lists the categories. 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.
AuthorizationCenter.shared.requestAuthorization(for:.child)
AuthorizationCenter.shared.requestAuthorization(for:.child)
is only permitted on devices that are logged into a child's iCloud account in an iCloud Family and aren't enrolled in MDM. If either of these conditions aren't met, requestAuthorization will return an error and will not allow users to enroll as a child in FamilyControls. Once the child is enrolled in FamilyControls, the FamilyActivityPicker will begin to populate with the child's applications on both the child's and guardian's devices.
If requestAuthorization(for:.child)
is still failing when the above requirements are met, please file a report with Feedback Assistant and attach a sysdiagnose. Thanks!