WidgetExamples icon indicating copy to clipboard operation
WidgetExamples copied to clipboard

Manage and refresh widget without opening app

Open aakash-patel-dev opened this issue 2 years ago • 1 comments

Basically, need to manage widget based on silent push-notification, please share your review @pawello2222

aakash-patel-dev avatar Oct 18 '23 00:10 aakash-patel-dev

when app is in kill state and refresh the widget

aakash-patel-dev avatar Oct 19 '23 08:10 aakash-patel-dev

Hi @aakash-patel-dev

Apologies for the late response.

I haven't tested the below solution but you can try adding:

WidgetCenter.shared.reloadTimelines(ofKind: <WIDGET_KIND>)

to didReceiveRemoteNotification in the AppDelegate:

application(_:didReceiveRemoteNotification:fetchCompletionHandler:)

pawello2222 avatar May 12 '24 16:05 pawello2222