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
}
Topic:
App & System Services
SubTopic:
General
Tags: