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. Directwindow.location.hrefassignment works (confirmed iOS 17+). -
Android: Uses backend
/common/socialendpoint 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