I'm building an app with 3 targets: the main app, a shortcuts extension and a widget extension.
When running in the simulator, the app's shortcut action (which is just a wrapper to call the reloadTimelines method) is capable of updating the widget multiple times. The same behaviour is experienced when running the app from Xcode on my devices (iPhone 8 Plus and iPad Pro 10,5").
But, when running the app on device without Xcode, the shortcut will only update the widget once or none at all, and then it stops updating.
I've already tried calling WidgetCenter.shared.reloadAllTimelines from a global.async block to no avail.
When running in the simulator, the app's shortcut action (which is just a wrapper to call the reloadTimelines method) is capable of updating the widget multiple times. The same behaviour is experienced when running the app from Xcode on my devices (iPhone 8 Plus and iPad Pro 10,5").
But, when running the app on device without Xcode, the shortcut will only update the widget once or none at all, and then it stops updating.
I've already tried calling WidgetCenter.shared.reloadAllTimelines from a global.async block to no avail.