Has anyone experienced this? I've submitted it as FB7845957
Has anyone experienced this? I've submitted it as FB7845957
It's sad 3 years later I face the same issue in iOS 17 - WidgetCenter.shared.reloadAllTimelines() works only on foreground (or when running the app from Xcode). Does anyone found a workaround?
Same problem on iOS 18.0.1 and Xcode 16... FB15508274
My timeline covers 10 days, but if I get new data in my background task which runs overnight, I'd like to reload the timeline.
I was able to verify that code before and after reloadAllTimelines()
successfully executes in the background and all my data is updated, but widgets timelines are not ( I share a subset of my data with the Widgets using an App Group and UserDefaults).
Starting the background task in the debugger always works and updates both data and widgets.
Has anybody experimented with shorter timelines, and/or TimelineReloadPolicy.after()
, or found any other workarounds yet?