You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm an experienced developer but a beginner with Swift and iOS, so your help will be very valuable.
My iOS app is based on a WKWebView loading some HTML (hybrid app).
Since the WKWebView cant access to local files, I wanted to run a HTTP server on the iOS device and then use it from inside the WKWebView.
However, when I start the Embassy server like in your example, my WKWebView becomes unresponsive and completely frozen. If I start a safari outside the app, I do see that the HTTP server is working.
I also do see that it is the line "loop.runForever()" which freezes the webview.
How can I fix that? Maybe I missed something :)
Thanks a lot!!
Josh
The text was updated successfully, but these errors were encountered:
Hi guys!
I'm an experienced developer but a beginner with Swift and iOS, so your help will be very valuable.
My iOS app is based on a WKWebView loading some HTML (hybrid app).
Since the WKWebView cant access to local files, I wanted to run a HTTP server on the iOS device and then use it from inside the WKWebView.
However, when I start the Embassy server like in your example, my WKWebView becomes unresponsive and completely frozen. If I start a safari outside the app, I do see that the HTTP server is working.
I also do see that it is the line "loop.runForever()" which freezes the webview.
How can I fix that? Maybe I missed something :)
Thanks a lot!!
Josh
The text was updated successfully, but these errors were encountered: