Is it possible to get the WidgetInfo id for the widget that is currently providing a timeline?
Asked Answered
E

1

6

WidgetCenter.shared.getCurrentConfigurations() returns a list of WidgetInfo structs (one for each widget the user has set up), each of which includes an id parameter which the documentation says is "the stable identity of the widget".

Is there any way to get that same stable id for a widget while it is providing its timeline? In other words, I want to access the current widget's WidgetInfo struct while we are constructing a timeline for that widget in the getTimeline(for...) implementation of IntentTimelineProvider.

Estren answered 31/5, 2022 at 5:47 Comment(3)
I was wondering the same, ever found a solution?Skyscape
@Skyscape Sadly no.Estren
I have confirmed with an Apple engineer that this use case is not supported.Estren
E
4

I confirmed with an Apple engineer in June 2023 that this use case is not supported.

Estren answered 4/9, 2023 at 21:41 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.