Apple Podcast widget displays Now playing and Resume according to the current playback status
(Nothing impressive so far - my guess is it reloads data from UserDefaults after a timeline refresh is invoked on WidgetCenter).
But the cool thing is it can also update the label just after the app was killed via the app switcher and I can't figure out how.
I tried invoking a timeline refresh in
Is the app calling some method or is the widget responding to some notification?
(Nothing impressive so far - my guess is it reloads data from UserDefaults after a timeline refresh is invoked on WidgetCenter).
But the cool thing is it can also update the label just after the app was killed via the app switcher and I can't figure out how.
I tried invoking a timeline refresh in
Code Block applicationWillTerminate
with no results.Is the app calling some method or is the widget responding to some notification?