Hacker News new | past | comments | ask | show | jobs | submit login

They haven’t deprecated web views at all: https://developer.apple.com/documentation/webkit/wkwebview

WKWebView can indeed be used to spy on users - clicks can be intercepted, URLs sniffed, and custom JS injected (including a way to call back to the app’s runtime via a WebKit message passing mechanism). Considering all other iOS browsers (ok maybe some still run UIWebView) have been made using this component (because App Store reviews enforce this), it’s clear that it has to provide extensive control over displayed contents.




SFSafariViewController is available as a safer alternative. Presumably at some point apple will deprecate and remove WKWebView for precisely the reasons mentioned in this article.


I don’t think they’ll ever remove that, because a decent portion of apps serve HTML from the app bundle (many hybrid apps do nothing else infact) and SFSafariController can’t hide its chrome. Many hybrid apps do need the delegation methods WKWebView offers, which are already way more limited than UIWebView was.


This is a policy problem, not a technical one. They'll keep WKWebView around but only for non-browsing purpose. Anything that resembles a web browser, SFSafariController or rejection.


That policy was recently hinted at here: https://developer.apple.com/news/?id=trjs0tcd

But it hasn’t been enforced yet for big apps like Yelp and Instagram.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: