I have read
If widget is a static snapshot, not alive, we are not allowed to provide a timer, and we also have limit timeline entry to update, why these apps are working?
Is there anything I missed reading, or is there anything missing from document?
But from my observation to those popular widget apps in the app store, they all manage to update widget every single minute precisely, not only the digital clock but also Analog clock.
WidgetKit Extension is not alive whenever the widget is visible
Updating every minute is far too aggressive. Widgets have a limited number of updates and if you were to try to update every minute, you'll quickly run out of updates.
If widget is a static snapshot, not alive, we are not allowed to provide a timer, and we also have limit timeline entry to update, why these apps are working?
Is there anything I missed reading, or is there anything missing from document?
Widgets provide a Timeline of TimelineEntry objects, where each TimelineEntry object declares a Date property so it can be ordered in the Timeline. Providing multiple TimelineEntry objects isn't "updating" per se, updates happen when the Widget is asked for a new Timeline. Updating too frequently is discouraged, but Apple also recommends (somewhere in their docs or WWDC sessions, can't remember) to provide up to 24 hours of entries on each update when possible
I'm going to assume the app in question is providing a new entry for each minute, so the analog clock would visually update each minute, but otherwise the widget is only "updated" once (and returns one Timeline per day).
I'm going to assume the app in question is providing a new entry for each minute, so the analog clock would visually update each minute, but otherwise the widget is only "updated" once (and returns one Timeline per day).