I tried this: https://developer.apple.com/documentation/activitykit/displaying-live-data-on-the-lock-screen-with-live-activities
I am building a workout app, the app can run in background , and I want to update the Live Activity realtime(once a second ) , so users can see the workout progress in realtime.
But as I test, when app in foreground the activity widget refreshed perfectly. But when the app goes to the background, it is not refreshed.