Hello everyone 👋
I wanted to discuss an issue that has always been somewhat present, but seems to have become more frequent since the latest iOS 17 versions.
When scheduling an activity that includes an event, the eventDidReachThreshold
method does not trigger consistently within the device activity monitor extension.
The issue is intermittent. However, repeating the following procedure increases the likelihood of encountering the problem:
- Schedule a simple activity with an event: Set the start time to the beginning of the current day and the end time to the end of the current day. Include an application token and a threshold (that you've already met for today 🙂).
- Once the activity is scheduled, monitor whether
eventDidReachThreshold
triggers in the device activity monitor extension.
Workarounds I've discovered:
- Restart the activity: Not very reliable.
- Force restart the phone: A more drastic measure, but sometimes effective.
- Just wait: Wait for an undetermined amount of time, ranging from a few minutes to several hours, after which
eventDidReachThreshold
will start triggering just fine again.
I've filed a bug report (FB13188666) concerning this specific issue. I'm curious to know if anyone else is experiencing it and what workarounds you've found!
Hi @thomas_maht , I think I found the reason. Referencing my post here, please boost: