I have an app that shows some data in a widget. When that data is changed on another device, it's supposed to sync to the current device, which works fine.
But the widget doesn't sync until I send the app into foreground (and then the sync happens), which is bad because the widget data should always be up-to-date.
I'm using this Apple guide to sync Core Data and CloudKit with slight modifications.
How can I sync widgets in the background?
Thank you in advance!
But the widget doesn't sync until I send the app into foreground (and then the sync happens), which is bad because the widget data should always be up-to-date.
I'm using this Apple guide to sync Core Data and CloudKit with slight modifications.
How can I sync widgets in the background?
Thank you in advance!