I'm try to physical device always getting error on Error for Family Controls: Error Domain=FamilyControls.FamilyControlsError Code=2 "(null)"
AuthorizationCenter.shared.requestAuthorization{result in
switch result {
case .success():
print("Allow to controle App ")
break
case .failure(let error):
print("Error for Family Controls: \(error)")
}
}
My question is - how can I authorize my parents using Family Control API in order to use for example Device Activity framework and Managed Settings framework?