Post

Replies

Boosts

Views

Activity

Update Widget when app is killed/terminated
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 applicationWillTerminate with no results. Is the app calling some method or is the widget responding to some notification?
0
0
682
Aug ’20