Post

Replies

Boosts

Views

Activity

Reply to Unable to see the list of Applications in FamilyPicker for the parent device
Same behaviour. Following are my logs Connection error from Optional("com.apple.ManagedSettingsAgent"): Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.ManagedSettingsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.ManagedSettingsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction.}  Attempts remaining: 1 Failed to fetch effective value for com.apple.ManagedSettings.effective-media-settings.changed: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.ManagedSettingsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.ManagedSettingsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction.} It is applying some Sandbox restrictions! Xcode 13 beta 4, iOS 15 beta 4
Aug ’21
Reply to Screen time api
AuthorizationCenter.shared.requestAuthorization can only used on a device with Child iCloud account. It can not be used on Parent's device. Purpose of this request is to Authorize A parent iCloud account on child device so that a parent can supposedly manage the child ScreenTime
Aug ’21
Reply to Designate principal class
Use "Call directory Extension" Template and create an extension. than create a sub class of "DeviceActivityMonitor" and change that class as a principle class in the info.plist //  MyDeviceActivityMonitor import Foundation import DeviceActivity import ManagedSettings class MyDeviceActivityMonitor: DeviceActivityMonitor{          override func intervalDidStart(for activity: DeviceActivityName) {         super.intervalDidStart(for: activity)     }          override func intervalDidEnd(for activity: DeviceActivityName) {         super.intervalDidEnd(for: activity)     }          override func eventDidReachThreshold(_ event:DeviceActivityEvent.Name,activity:DeviceActivityName){                  super.eventDidReachThreshold(event, activity: activity)     }      } <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>NSExtension</key> <dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.deviceactivity.monitor-extension</string> <key>NSExtensionPrincipalClass</key> <string>$(PRODUCT_MODULE_NAME).MyDeviceActivityMonitor</string> </dict> </dict> </plist>
Aug ’21
Reply to Selection To Discourage
Container App and its extension are running almost separately so you can not share data on memory level. You need to save MyModel Data in User shared default and then need to fetch that data in your extension. You can use AppGroup to share data b/w Container app and its extension.
Oct ’21