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.

Answered by in 720883022

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

Accepted Answer

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

I faced the same issue recently. After manually removed familyAuthorization capability from the extension and returning it back, everything starts to work. But breakpoints still does not get called

DeviceActivityMonitor
 
 
Q