Thursday, February 15, 2024
HomeiOS Developmentios - Why calling requestAuthorization() for a kid account throws "restricted" error...

ios – Why calling requestAuthorization() for a kid account throws “restricted” error in ScreenTime API?


I am creating an iOS app that makes use of ScreenTime API.

Regionally, all the things works as anticipated – I’ve two bodily gadgets in a single Apple Household, and calling AuthorizationCenter.shared.requestAuthorization(for: .little one) reveals commonplace authorization dialog.

At present the app is in a assessment by Apple, and they’re saying they cannot authorize as a baby. From logs, and a screenshots offered by them, I see that on AuthorizationCenter.shared.requestAuthorization(for: .little one) name, FamilyControlsError.restricted error is thrown.

I did not encounter this error as soon as throughout improvement and might’t simulate this concern now both. Tried all the things – authorization on account that’s not a baby, not in a household, tried proscribing all the things potential for a kid’s system from ScreenTime settings. This particular error is rarely triggered.

Does anybody have thought why this error may occur? My final guess is the assessment crew is utilizing an enterprise account and that someway intercepts with ScreenTime settings. However I haven’t got an enterprise account to check this principle.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments