Screen time api

i have two physical devices one for parent and one for child. on the child device. AuthorizationCenter.shared.requestAuthorization returns me .success but on the parent device it always fails with receiving that "The operation couldn’t be completed. (FamilyControls.FamilyControlsError error 2.)"

  1. what are the reasons that may cause this error on the parent device?

AuthorizationCenter.shared.requestAuthorization can only used on a device with Child iCloud account. It can not be used on Parent's device. Purpose of this request is to Authorize A parent iCloud account on child device so that a parent can supposedly manage the child ScreenTime

Screen time api
 
 
Q