Escape In-App Browser — Detect and escape from in-app browsers (Instagram, Facebook, Twitter, KakaoTalk, LINE, etc.)
Open the shared link from Instagram, Facebook, Twitter, or any other app to test detection
<EiabSuccess> <p>You're in a normal browser!</p> </EiabSuccess> <EiabFailed> <p>Please open in Safari or Chrome.</p> </EiabFailed>
Loading...
Code Example:
<EiabSuccess> <p>You're in a normal browser!</p> </EiabSuccess> <EiabFailed> <p>Please open in Safari or Chrome.</p> </EiabFailed>
x-safari-https://...Opens directly in Safari
intent://...#Intent;package=com.android.chrome;endChrome Intent URI for reliable escape
kakaotalk://web/openExternal?url=...Uses KakaoTalk's native external browser scheme
?openExternalBrowser=1LINE respects this query parameter on both platforms
bun add eiab
import { attemptEscape } from "eiab"
// Auto-escapes if in-app browser detected
attemptEscape()import { EscapeInAppBrowser } from "eiab/react"
export default function Layout({ children }) {
return (
<>
<EscapeInAppBrowser />
{children}
</>
)
}