Post

Replies

Boosts

Views

Activity

Refreshing Widget from Notification Extension
I would like to refresh Widget when application receives push notification. It sounds like a typical case that is also mentioned in many guides e.g "Keeping a Widget Up To Date". Currently, I'm trying to call WidgetCenter.shared.reloadTimelines(ofKind: "MyKindOfWidget") from Notification Extension (I receive rich push notification) but it doesn't "force" widget to reload. Calling the same code from the main app works as expected. Am I missing something?
2
0
2k
Dec ’20