URL Handling API
URL Handling – Open links in System Browser
Option 1: Open all external hosts in System Browser
If you want to open every URL, which is not on your host in System Browser, please set OPEN_EXTERNAL_URLS_IN_ANOTHER_BROWSER (in Config.java file) to true.
Option 2: Open only specific hosts in System Browser
Please search for this snippet (CMD+F) in MainActivity.java:
To add another domain, just copy this snippet and insert another host, which should be opened in System Browser. Please enter the host precisely the way you link to it.
URL Handling – Open links in a tab/additional In-App-Browser
Please insert https://www.webviewgold.com/demo/testlinks.php as WebView URL to test how your app will handle different types of links. You can open the same domain https://www.webviewgold.com/demo/testlinks.php in your desktop browser and see the source code to copy & paste the way of link.