Webview + external link?

In plugin I can open external links by “requiredPermissions”- “launchProcess” - “schemes”: “https” and allowed domains. This works fine.
But I want the same functionality out of Webview. Links there with target=“_blank” are ignored now. So my idea was to send an event back to plugin to open external browser. What is best to automatically open browser here - use a hidden sp-klink and try to automatically send click event on it. I have not tested this yet - is there better way?

You mean open an external link in a browser window?

Opening an external link from webview in a new window is not supported now. The only option now is to use post message and open it from the plugin.

(WebView) postmessage → (Plugin) openExternal

1 Like