DeviceActivityMonitor

Hi! DeviceActivityMonitors methods IntervalDidStart, IntervalDidEnd and eventDidReachThreshhold do not seem to be called on my application. Has anyone found a solution to this problem. Thank you in advance.

Replies

Is your device authorized with FamilyControls? (i.e. does your app ever call requestAuthorization(for:)? Please see AuthorizationCenter for more info.

  • Hi! I've gotten as far as shielding apps with https://github.com/agarrharr/Homework/tree/main/Homework2 but I'm not getting any call back on deviceActivityMonitor. I am able to get the monitor to start monitoring but the DeviceActivityMonitor methods aren't being called. (print() doesn't work and also I've tried shielding the apps with intervalDidStart and nothing seems to happen). I start the monitoring after I've used the familyActivityPicker.

Add a Comment