3 ways to fix the err_unknown_url_scheme error.
You have two options for resolving this error: either disable certain schemes and only use the http:// and https:// schemes when developing your app, or modify your code to support these specific URL schemes.
Open In New Window
Editing your URL's href code is a quick and simple workaround. It is possible to circumvent the issue by appending target=" blank." Now that this link will now open in a new window, adding this line of code could have an unfavorable development effect.
It's not a good idea to open extra browser windows when developing. This is due to the fact that a new browser may annoy or confuse your user. Users may find it more challenging to navigate and return to their previous page in your app if the "back" button is removed. Target=" self" is the industry standard and opens the link in the same browser tab.
Add New Intent to Load in External App
Intents are used in Android development to tell Android what you want the app to perform, effectively letting you invoke a certain action or component. The addition of an intent to load in an external app can fix some scheme issues. For instance, the email link should open in your usual email application when you load mailto:/ in an external program. Another illustration is maps:/, which ought to launch your usual map program.
You will use an IF statement to manage this in the snippet of code below. Any URL with the prefix http:// or https:// is disregarded and opened normally. Otherwise, if the URL uses a unique scheme like:
Disable any non-standard URL schemes
Disabling URL systems other than the typical https:// and http:// can entirely get around this issue. None of the previously mentioned custom schemes will be available to you.
A toast notification will appear whenever your app uses one of these navigational techniques or if a user accesses a link utilizing one of these techniques. The user won't be able to continue after seeing the warning "Error: Unknown link type."
Hope this works.....