Slow performance when using Screen Time API?

Hello,

our app uses the frameworks FamilyControls, ManagedSettings and DeviceActivity. It runs smoothly in like 99% cases but we have some support requests that mention the app being incredibly slow - like seconds to register button presses.

These reported incidents deal with calls to these APIs mentioned above. One of the frequent complaint is that code that manipulates with ManagedSettingsStore is slow and the whole app becomes unresponsive.

Unfortunately I am not able to reproduce this on my devices so cannot run it through the Instruments.

Anyone has experience with this?

PS: These reports are frequently from new and fast devices - like iPhone 13 & iPhone 14 so that should not be the case.

Slow performance when using Screen Time API?
 
 
Q