Skip to content

Documentation / @frak-labs/core-sdk / index / redirectToExternalBrowser

Function: redirectToExternalBrowser()

redirectToExternalBrowser(targetUrl): void

Defined in: utils/inAppBrowser.ts:52

Redirect to external browser from in-app WebView.

  • iOS: Uses x-safari-https:// scheme — server-side 302 redirects to custom URL schemes are silently swallowed by WKWebView. Direct window.location.href assignment works (confirmed iOS 17+).

  • Android: Uses backend /common/social endpoint which returns a PDF Content-Type response, forcing the WebView to hand off to the default browser.

Parameters

targetUrl

string

The URL to open in the external browser

Returns

void