Post

Replies

Boosts

Views

Activity

Reply to eventDidReachThreshold is working as expected only when the app is in debug mode
@_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.
Mar ’24
Reply to Device Activity Monitor Extension Sometimes Fails To Launch
Facing the same issue here. For us, the whole process works as expected when we're in debug mode/ when the physical device is connected to Xcode. But when we try the same process after disconnecting the physical device from Xcode or if we try it on release mode, we don't get a callback to the app from the extension where we have the shielding logic in place. Trying to debug this from past 2 days, not able to find any solutions to it.
Mar ’24