Is there a way to use DeviceActivityMonitor to monitor a user's Screen Time ONLY on the current device, even if they have "Share Across Devices" enabled in their Screen Time settings?
For DeviceActivityReport, you can provide a DeviceActivityFilter which can specify the devices you want to show. But I have not seen any way to filter devices with the DeviveActivityMonitor API. I would expect there to be a additional argument to DeviceActivityEvent's init method:
init(
applications: Set<ApplicationToken> = [],
categories: Set<ActivityCategoryToken> = [],
webDomains: Set<WebDomainToken> = [],
threshold: DateComponents
)
Where you can specify devices
as well. Right now, it seems like the default behavior is to monitor across all shared devices, which is causing problems for my application.