News for hackers. Stuff that matters.
Re:Instagram can track anything you do on any website in the... by kart23 on Wednesday August 10, 2022 @02:25PM (#32416407)
surprised this is at the top of HN. isn’t it obvious that every app does this? tiktok, snapchat, even linkedin all open links in their built-in browser and can track what you’re doing. click open in safari if you’re doing anything more than visiting a single page.
Re:Instagram can track anything you do on any website in the... by webercoder on Wednesday August 10, 2022 @04:21PM (#32417869)
I naively assumed that they were using a WebView object and that Apple had tight controls over source code injection. Silly me!
Re:Instagram can track anything you do on any website in the... by altairprime on Wednesday August 10, 2022 @05:39PM (#32418787)
Apple has deprecated but not yet removed the legacy web embeds that app developers use to spy on and track their users.
Re:Instagram can track anything you do on any website in the... by manmal on Wednesday August 10, 2022 @07:31PM (#32419782)
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.

Re:Instagram can track anything you do on any website in the... by semiquaver on Wednesday August 10, 2022 @08:13PM (#32420069)
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.
Re:Instagram can track anything you do on any website in the... by manmal on Thursday August 11, 2022 @01:46AM (#32422021)
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.
Re:Instagram can track anything you do on any website in the... by xuki on Thursday August 11, 2022 @05:29AM (#32423353)
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.
Re:Instagram can track anything you do on any website in the... by altairprime on Thursday August 11, 2022 @10:47AM (#32426543)
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.

Re:Instagram can track anything you do on any website in the... by altairprime on Thursday August 11, 2022 @10:46AM (#32426522)
I’m wrong, and confused the older UIWebView with WKWebView.
Re:Instagram can track anything you do on any website in the... by madeofpalk on Wednesday August 10, 2022 @02:41PM (#32416612)
It's not surprising, but it's not obvious.
Re:Instagram can track anything you do on any website in the... by somerando7 on Wednesday August 10, 2022 @03:53PM (#32417523)
To me it's not obvious. I wouldn't think that an app can inject JS into a website because I'm using a web-browser from their app.
Re:Instagram can track anything you do on any website in the... by M4v3R on Wednesday August 10, 2022 @03:59PM (#32417580)
Not every app does this. Twitter for example doesn't, because it uses SFSafariViewController which doesn't allow for script injecting.
Re:Instagram can track anything you do on any website in the... by joshstrange on Wednesday August 10, 2022 @03:35PM (#32417311)
I was/am a little surprised since I thought everyone had to use SFSafariViewController for stuff like this (which doesn't allow the developer to reach in). I "eject" out to Safari almost always when I get in in-app-browser (if only for cookies/logged in status) so this doesn't affect me much but it did come as a surprise.
Re:Instagram can track anything you do on any website in the... by davidmurdoch on Wednesday August 10, 2022 @09:17PM (#32420475)
It's so obvious to me I'm flabbergasted others here on HN don't think so.

In app browsers that display content unrelated to the app itself (like links from creators) serve zero purpose to the user and offer a horrible user experience. So why is the browser in-app then? I thought the answer was obvious: to track you.

Maybe some people prefer in-app browsers?

Re:Instagram can track anything you do on any website in the... by plif on Wednesday August 10, 2022 @02:29PM (#32416461)
Yep, this is a feature, not just for tracking but also containment when navigating to external links. Big reason why all of those apps and others aggressively push users from web to mobile.
Re:Instagram can track anything you do on any website in the... by stevage on Wednesday August 10, 2022 @06:46PM (#32419391)
As a non mobile developer, no, this was completely surprising to me.
Re:Instagram can track anything you do on any website in the... by sixothree on Wednesday August 10, 2022 @04:14PM (#32417784)
Also why is the headline "Instagram _can_ track anything you do on any website in their in-app browser"?
Re:Instagram can track anything you do on any website in the... by SnowHill9902 on Wednesday August 10, 2022 @02:33PM (#32416512)
It’s not obvious but it is reasonable.
Re:Instagram can track anything you do on any website in the... by InCityDreams on Wednesday August 10, 2022 @02:55PM (#32416805)
>isn’t it obvious that every app does this?

Not if you never have/ don't use them.