Hi @Ivan018 .
To check if DeviceActivityMonitor delegates work, I created a singleton class, marked the target to both Project and DeviceActivityMonitor. This way I am able to access the selected apps from family activity picker in the monitor extension. I am shielding the apps in "intervalDidEnd". You can try the same in "intervalDidStart"
override func intervalDidEnd(for activity: DeviceActivityName) {
super.intervalDidEnd(for: activity)
// Handle the end of the interval.
/// Once interval ends restrict the app.
let model = DataModel.shared
let selection = model.getScheduledSelection()
let applications = selection.applicationTokens
store.shield.applications = applications.isEmpty ? nil : applications
}
Post
Replies
Boosts
Views
Activity
To test if "intervalDidStart" is working, I started monitoring the apps, and call the shield app functionality in "intervalDidStart". My apps get shielded. Second, minimum schedule interval for monitoring the app is 15 mins. Anything less than that, won't trigger the monitor extension.
@Ivan018 Were you able to fetch child device's activity report on multiple parents devices under same family group?