Hi Is it possible to render webview in Widget?
Basically i want to show some content of website in Widget on homescreen using webview.
I tried to use WKWebview in WidgetView, but it's not rendering .
Thanks with regards iOSProfessionals
Hi Is it possible to render webview in Widget?
Basically i want to show some content of website in Widget on homescreen using webview.
I tried to use WKWebview in WidgetView, but it's not rendering .
Thanks with regards iOSProfessionals
It is not recommended to try and render a web process in your Widget. This can lead to memory issues, battery drain and more because there are underlying process(es) with WKWebView that make this an overall bad idea. It would be better use a snapshot of the web content your want to show as an image.
Rico
WWDR - DTS - Software Engineer
Is there any way to access WKWebView while in a Widget?
I don't need to display it, but I need to access the data stored in an IndexedDb on a site so I can populate the Widget correctly.
This is for offline, so I can't go back to the web-site itself. I just want to create, use and then drop the WKWebView to access the data displayed (and stored) previously, or in the case of a notification, to update the stored data with the latest incoming data without opening the app. (This is to keep everything in sync in intermittent environments) I have the offline behavior working fine, just not in a widget.
Alternatively, is there any way to bypass the WKWebView and access the stored data (localStorage and IndexedDb) associated with a site that is stored by WKWebView.
Finally, if nothing else is available, is there any way to intercept the WKWebKit data storage so the app can take control of how the data is stored?