I'm observing similar problems, but only on phones with iOS 18.
UsageTrackingAgent reports wrong time remaining
eventDidReachThreshold sometimes is called 4 times within milliseconds for the same activity/event
it seems to get worse as the day goes on, ie the time remaining gets shorter
There have been other weird behaviours but I managed to get these under control.
My use case: allow x minutes of screen time for y app category. Upon expiry, shield apps in that category. Then perform certain tasks in my app, and shielded apps are unshielded and additional x minutes of screen time is granted. etc .etc.
It's basically completely broken for iOS 18.1.1, about to test 18.2
Works fine on 17.7 and 16.7.10
FB16055453
I know this doesn't help you OP but at least it increases the noise.
Topic:
App & System Services
SubTopic:
General
Tags: