Steps to debug extension via Xcode,
1. Run the app on device via Xcode 2. Go to menu Debug -> Attach to Process -> Search for the extension name you have given for 'com.apple.deviceactivity.monitor-extension' and attach it Now you have two process attached for debug.
Steps to collect logs from console,
1. Launch Console and start monitor device traffic 2. Search for your extension name given for 'com.apple.deviceactivity.monitor-extension' under category 'Process'
Post
Replies
Boosts
Views
Activity
please go through the first paragraph in the below thread,
https://developer.apple.com/forums/thread/685126
Incase the above issue solved, please let me know the steps.
@AsifmDev
Family picker is showing all apps as expected when it’s launched from child device, whereas it is showing categories alone without apps in parent device.
do we need to configure anything specific for parent device or guardian device.
I am testing in iOS 15 latest released version. Both my child device and parent device are having same version.
Even I tried with iPad too with same os version no luck.
@vova085 Did you add Family Controls capability to your extension? If not please add it and do the following,
Steps to debug extension via Xcode,
Run the app on device via Xcode 2. Go to menu Debug -> Attach to Process -> Search for the extension name you have given for 'com.apple.deviceactivity.monitor-extension' and attach it Now you have two process attached for debug.
Steps to collect logs from console,
Launch Console and start monitor device traffic 2. Search for your extension name given for 'com.apple.deviceactivity.monitor-extension' under category 'Process'
@yuraist
I just played with child device aspects, not moved to next step where child application lists are been handled from guardian/parent app.
If you want to try something together, yeah I am fine with that.
Thanks
You can save it as object in Codable format.
@kgaidis
Try Erase all content and settings in your device and try it again.
For me once it happened and I tried "Erase all content and Settings" option, my wild guess is, it could be some authorization happened in past which is not been revoked correctly.
Yes it asked for parent/guardian credential for turning off.
@eskimo
I just tried to install MDM profile after enabling screen time permission for my application, but MDM profile installation gets failed. Is it expected behaviour?
@cinnamontoast
I am referring to ScreenTime API.
Screen Time in Settings working fine with MDM (I can use both when they're co-exists).
few more information,
If MDM installed prior to calling 'AuthorizationCenter.shared.requestAuthorization(for: .child)', API is returning FamilyControls.FamilyControlsError code '0'.
If 'AuthorizationCenter.shared.requestAuthorization(for: .child)' gets succeeded prior to install MDM, MDM profile installation failing with 'MDM is not allowed' error.