Post

Replies

Boosts

Views

Activity

Widget doesn't update based on timeline entries
I can't seem to get my widget to update according to my timeline entries... I'm using IntentTimelineProvider. In the getSnapshot method (apparently snapshot is deprecated in beta 5), I create a timeline with six entries. The first one is set to the current time, the second one is set to the top of the next hour (for instance, if it's 2:15pm, the next one is set to 3:00pm), and the subsequent items are an hour apart. Then I set the reload policy to .after with a time that is an hour later than the last widget. Basically, I just want the image in my simple widget to update each hour. The thing is that the widget disregards my timeline and doesn't update until the .after deadline occurs, and then it just asks for a whole new timeline that it again ignores. Here are things I've tried that didn't work: Simplified the timeline times so that the entries are set to one minute apart. Added a snapshot method, even though it is deprecated in beta 5. Changed the reload policy from .after to .atEnd. Am I missing something, or is this functionality not working in beta 5? Thanks for any tips! Using Xcode 12 beta 5, iOS 14 beta 5.
1
0
895
Aug ’20