Hello, I have created a test project and when requesting authorization with this code from the video:
AuthorizationCenter.shared.requestAuthorization { result in
switch result {
case .success():
print("Authorization granted")
self.startMonitoring()
return
case .failure(let error):
print(error.localizedDescription)
}
}
I get:
The operation couldn’t be completed. (FamilyControls.FamilyControlsError error 4.)
I am running the project on a physical device with iOS 15 beta 2 signed in with a child iCloud account.
When running:
print(AuthorizationCenter.shared.authorizationStatus)
I get:
Not Determined
What does FamilyControlsError error 4.
mean? Why am I not able to get the dialog to grant authorization?
Having the same issue. I tried resetting settings, logging out of the child account, restarting and logging back in, tried turning ScreenTime off and back on again, nothing worked.
The only way to make it work was to wipe the iPhone clean and set it up again with the child account.