Escaping iOS In-App Browsers (Instagram, Facebook, etc.) When users click a link inside apps like Instagram or Facebook on iOS, they don’t open Safari . Instead, they get trapped inside a restricted in-app browser ( WKWebView ). At first glance, that sounds harmless—but in practice it breaks a lot of things: Login sessions don’t persist (cookies don’t match Safari) Payment flows (Stripe / Apple Pay) fail or behave inconsistently Native APIs are limited or unavailable Overall UX is noticeably worse I ran into this while working on a project and went down a rabbit hole trying to “escape” these in-app browsers . Here’s what I found. 🧱 The Problem: You Can’t Just Redirect Out Historically, there were tricks like: x-safari-https://example.com Enter fullscreen mode Exit fullscreen mode That used to force iOS to open Safari. Not anymore. Modern apps like Instagram actively intercept and block this. No error, no fallback—just… nothing.…