I have a problem about Family Control in iOS 16 | Could not restrict apps on my child device

I would like to create an app for parental control, I mean pairing two devices then controlling the child one, the documentation is pretty lacking I implemented Manage Settings, Device Activity Extension, and Family Controls as it was said in WWDC: https://developer.apple.com/videos/play/wwdc2022/110336/ As they said, sending a request when app launched,

struct PCDemoAppApp: App {
//    iOS 15 requesforauth appDelegate method
//    @UIApplicationDelegateAdaptor private var appDelegate: AppDelegate
    
    var body: some Scene {
        WindowGroup {

            ContentView()
                .onAppear{
//                WWDC iOS 16 request
                Task{
                    do{
                        try await AuthorizationCenter.shared.requestAuthorization(for: .child)
                    }catch{
                        print(error.localizedDescription)
                    }
                }
            }

        }
    }
}

Then, i am listing the apps which one if any in my app, starting monitoring etc...

When I select the apps in my app, it gives restriction to your own applications not the childs....

The real question is,

Now, I got 2 iCloud accounts, one of the parent and other one is child. Both logged in 2 phones right now.

I building my app both, child sends request -want to enable access to screen time etc. - but parent one is not.

I can monitoring childs apps in parent but I can not restricted which is selected in parent, it gives restriction to your own applications not the childs even only childs screen time enabled in parent device. I could not understand that part,

Is there any missing part of Screen Time API?

How can I test it?

Why can't i give restriction for child?

Is it correct to get builds on both devices?

Is there any missing part of Screen Time API? How can I test it? Why can't i give restriction for child? Is it correct to get builds on both devices?

Im using that example for monitoring https://www.folio3.com/mobile/blog/screentime-api-ios/

The ManagedSettings framework only works on the local device. If your app needs to send restrictions from a parent's device to a child's device, your app will need to implement the syncing itself (one way to sync data across devices and accounts is CloudKit). Once your app's rules/restrictions have synced from parent to child, you can then apply the relevant settings locally on the child's device using ManagedSettings.

Thanks for comment @Kmart

-Shared Across Devices settings are open now, is it related to this or is another implementation needed?

  • In this sentence "you can then apply the relevant settings locally on the child's device using ManagedSettings." , as I understand, Is it not possible for me to control the child from the parent device?

And also do you have an suggested code examples or documents for implementing that frameworks?

@dshn are you able to solve this. I myself facing the same kind of problem.

I have a problem about Family Control in iOS 16 | Could not restrict apps on my child device
 
 
Q