I am developing an iOS Home Screen widget for our app. The widget renders an image retrieved from the user's photo library in each of its timeline entries. Sometimes in the TimelineProvider.getTimeline(...)
method execution stops while accessing the PHAssets
.
Retrieving the PHAssets from the photo library takes around 700-800ms. Adding logs the method reveals that execution just stops. The timeline's completion handler never gets called.
Suspension of the method only happens while not debugging the method.
I wonder if there is some kind of limit on how long getTimeline
is allowed to execute or on how much data the process is allowed to haul around.
Thanks in advance for any information you can provide.