How home-screen countdown widgets stay up to date on iOS and Android
A countdown widget looks simple: a number that goes down. But home-screen widgets are not tiny apps that run all the time. The system renders them on its own schedule, so a naive "update every second" approach does not work. Here is how countdowns stay correct on both platforms.