Hello,
We are running a complex web application built with React and related ecosystem. this web application is essentially a PWA and it is offline first. So, It relies heavily on service worker, indexDB database, cache storage, local storage etc.
We are running this web application inside a WKWebView which resides in a native iOS App. We have noticed that WKWebView is highly unreliable when it is running such a complex web app.
some of the behaviours noticed are
- only blank screen is shown with no content loaded from the url
- when url is pointed to different location (say uat, qa, prod environments) in the same wkwebview at run time, it causes data corruption as part of indexdb. it seems that it is not keeping different sets of data for different urls.
- when registering newer version of service workers, wkwebview errors out and can not proceed with new registrations
- does not always show a target page when a react app programmatically navigates to different locations within the web app.
I am interested in knowing from fellow iOS developers that
- have you previously experienced above with WKWebView?
- is WKWebView a good option for running such a web application or SFSafariView is the better alternative?
thank you
Dilip