Hacker News new | ask | show | jobs
by dwaite 1325 days ago
> What I want (as a user, not a developer) is to be able to force an app to open links in Safari, not the app's built-in webview

In some cases apps use the browser to render the app's UX, via hooks added to the browser to invoke native code (e.g. to expose native platform functionality that is not web accessible). This web content may only exist within the app sandbox's filesystem, or may be externally hosted.

But from a systems API standpoint, this is no different from Facebook opening links in their own internal browser so they can glean metrics on what links you are following.

So what you are talking about is actually a store policy (e.g. apps without the browser entitlement must open third-party web content via this other mechanism).

> and to force links to certain URLs to open in the app of my choosing, not Safari (in that case).

For HTTPS in general, IIRC the user can select from a list of apps with the browser entitlement.

Apps can already opt into their own HTTPS URL support for several years via Universal Links - but they have to get the domain owner to allow it to prevent abuse. They've been able to take over URI schemes outside of a reserved list since the App Store launched.

The android equivalent system (App Links IIRC) allows non-affiliated apps to take over certain HTTPS URL function, but the user has to enable it in settings - and will get a chooser if multiple applications can support the interface.