Post

Replies

Boosts

Views

Activity

Reply to Reshield apps after certain time?
Are there any errors coming from the startMonitoring() call? There are limits on how short a time interval can be for a DeviceActivitySchedule; the minimum is 15 minutes, and the maximum is a week. If you're doing a two minute interval, you should be getting an intervalTooShort error. For my own app, when I want to unblock an app for a period of time, I use an interval that starts at the time the shield should be re-applied and ends when the primary schedule ends (or some time later, if that would be too short). Then I re-apply the shield on the intervalDidStart event.
Topic: App & System Services SubTopic: General Tags:
May ’25