@_lilpit is there a way to monitor multiple events/schedules concurrently? Running startMonitoring on the second event just overrides the previously created one, along with the appTokens selected for that event. So, creating a new event un-shields the previously selected app and starts monitoring the newly created one even if we give the event a unique name like :
let event = DeviceActivityEvent(
applications: activitySelectionData!.applicationTokens,
categories: activitySelectionData!.categoryTokens,
threshold: DateComponents(minute: limitDuration)
)
let eventName = DeviceActivityEvent.Name(<uniqueId>)
What is the best way to handle multiple events and schedules without having them interfere with each other? Also curious to know how to keep track of applicationToken for each event separately.