Hacker News new | ask | show | jobs
by nodejsthrowaway 1403 days ago
Is this different from my android experience where I open a link from an app and it opens my default browser, Firefox, but kind-of within the app, but allows me to instantly switch over to the Firefox app instead using a drop-down menu option?
2 comments

Android has two ways of doing that - Chrome Custom Tabs which are secured against this (iirc) and WebView which isnt.

Custom Tabs always have a title bar and a small writing "Powered by <browser>" at the end of the menu.

iOS provides a way of showing a browser that looks like it's within the app from which it is launched. This is not what Instagram is doing. Instagram is doing something different from what other apps like Telegram do, according to the article:

> Comparing this to what happens when using a normal browser, or in this case, Telegram, which uses the recommended SFSafariViewController:

> As you can see, a regular browser, or SFSafariViewController doesn’t run any JS code. SFSafariViewController is a great way for app developers to show third party web content to the user, without them leaving your app, while still preserving the privacy and comfort for the user.