logoalt Hacker News

ShinyLeftPad • today at 2:01 PM • 5 replies • view on HN

> the apps open the real facebook.com login inside their own browser, so they can read Facebook's session cookies

I thought Apple doesn't allow third party browser engines?


Replies

piva00 • today at 2:13 PM

WKWebView is used for displaying web content, as the app developer you have full control of it when running inside your app.

It's just Safari running inside your app, no 3rd party engine.

➕ show 1 reply
ceejayoz • today at 2:20 PM

This is just a webview, but they do (unwillingly) in the EU now.

> iOS and iPadOS include capabilities that let apps use alternative browser engines — browser engines other than WebKit — for dedicated browser apps and apps providing in-app browsing experiences in the EU. To use an alternative browser engine in your app, you’ll need to request the Web Browser Engine Entitlement (for browser apps that want to use alternative browser engines) or the Embedded Browser Engine Entitlement (for apps that provide in-app browsing experiences that want to use alternative browser engines). These capabilities are available to EU users on devices running a minimum of iOS 17.4 or iPadOS 18.

https://developer.apple.com/support/alternative-browser-engi...

➕ show 1 reply
rpdillon • today at 4:01 PM

You're conflating the number of browser engines with a number of instances of a browser engine running on the phone. By spawning their own instance of a browser, they can add telemetry and see what you're doing inside of it in a way that would not be possible inside of Safari.

rileymat2 • today at 2:04 PM

You can use webkit, and have full access. “There own browser” not engine.

afavour • today at 2:32 PM

Here “their own browser” means a system webview.

It’s notable that you are allowed to sniff cookies via this webview though. I have limited sympathy for Facebook here, their own app uses the same webview that lets them sniff all kinds of data about user browsing. There is a more secure and user friendly webview alternative, and there has been for years. But they don’t use it.