4 ms·
Is there a reason they don't ship with a simple web server to server out the static files, similar to `python -m SimpleHTTPServer`?
by gpmcadam 11y ago
Is there a reason they don't ship with a simple web server to server out the static files, similar to `python -m SimpleHTTPServer`?
- eddieroger 11y agoWhy would they want to? Both platforms have webviews that can render HTML from a file, or passed in strong form, or whatever you like. Why point it at an internal web server? If anything, it'd add overhead to the system that's unnecessary.
- 0x0 11y agoApparently WKWebView does not support loading from file. That's why he suggested wrapping it in a localhost HTTP server.
- Spoom 11y agoThe Android Cordova platform used to do this by including OkHttp but they moved away from that because it's now unnecessary.