Handles opening deeplink in another app from the webview. Fix for the issue: #98
When webview tries to navigate to URL scheme which is not handled by browser (something else than http:// or https://) we should try to open it in the corresponding application. If app matching the deepLink schema is not found do nothing and show browser's error page.
Within iOS this seems to be handled already, but it were missing from the Android solution as far as I understood correctly.
Example
This example uses deeplink to phone app with URL tel://0401231234
Handles opening deeplink in another app from the webview. Fix for the issue: #98
When webview tries to navigate to URL scheme which is not handled by browser (something else than
http://
orhttps://
) we should try to open it in the corresponding application. If app matching the deepLink schema is not found do nothing and show browser's error page.Within iOS this seems to be handled already, but it were missing from the Android solution as far as I understood correctly.
Example This example uses deeplink to phone app with URL tel://0401231234
Browser.openWebView({ url: 'https://halgatewood.com/deeplink?link=tel%3A%2F%2F0401231234', title: 'Deep link test', toolbarType: 'navigation' })
https://github.com/Cap-go/capacitor-inappbrowser/assets/7661970/184dcb06-e3b0-467f-ae6b-2fe046193838