redirectToExternalBrowser
redirectToExternalBrowser(
targetUrl):void
Defined in: utils/browser/inAppBrowser.ts:65
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
Section titled “Parameters”targetUrl
Section titled “targetUrl”string
The URL to open in the external browser
Returns
Section titled “Returns”void