I have a VPN app that has an embedded Network Extension. I wish to create a Widget based on the Network Extensions status. i.e Connect and what server/Country.
If I take the traditional route of embedding the widget in the main app and call WidgetCenter.shared.reloadTimelines in the extension it works as expected, but ONLY if the parent app is still alive. The minute the parent app goes away calling WidgetCenter.shared.reloadTimelines does nothing.
I have tried embedding the plugin inside of the Network Extension plugin but this as expected does not work.
Is this a limitation of WidgetKit ( No ability to be updated from a running plugin)? Or is there a better way to update this widget
If I take the traditional route of embedding the widget in the main app and call WidgetCenter.shared.reloadTimelines in the extension it works as expected, but ONLY if the parent app is still alive. The minute the parent app goes away calling WidgetCenter.shared.reloadTimelines does nothing.
I have tried embedding the plugin inside of the Network Extension plugin but this as expected does not work.
Is this a limitation of WidgetKit ( No ability to be updated from a running plugin)? Or is there a better way to update this widget