Issues with Multiple Activations and Interruption of intervalDidStart in DeviceActivity When Using ScreenTime API

I am a Swift developer using the ScreenTime API to develop an app that helps users manage app usage time on their phones. While working with DeviceActivity, I've noticed that it sometimes gets activated multiple times in succession, and occasionally, the code within intervalDidStart stops executing midway. What could be the cause of this?

Issues with Multiple Activations and Interruption of intervalDidStart in DeviceActivity When Using ScreenTime API
 
 
Q