If a WKWebView terminates when an app is running in the foreground, webViewWebContentProcessDidTerminate will be called on its delegate.
But what happens if the app is in the background?
Will it still receive the callback immediately? Will it receive it when the app is later foregrounded? Does it not run at all?
I currently don't know how to trigger a termination – otherwise I would just try it.
I ask because I want to make it reload the web view that was terminated to avoid a blank screen in my app, but I'm not sure if this will actually work with an app running in the background.