How To Solve Failed to Load Resource: net::err_unknown_url_scheme?

0
41

We all are using Smartphones and to increase the usability of the device we need to install apps. It is only apps that totally changed the view of this smart handset. In the beginning app development had faced many problems and successfully overcome those issues successfully to deliver the service what we are getting now. But recently some app developer and users are facing a problem while navigating to the interface of some apps. App developers are facing the same error while developing and testing the app in the web view. The error is “err_unknown_url_scheme” and everybody those who are facing this error looking for solution to fix  err_unknown_url_scheme.

how-to-fix-err-unknown-url-scheme

Unfortunately, the perfect solution to this problem is not still discovered or might be possible not available in any web content6-blog, forum, Google support, chrome support. This error sometimes gets triggered when you are trying to open another page of the interface. This error has one temporary solution. When the error gets encountered you need to backward and click to open the page again. Might this solution can temporarily move you away from this recent err_unknown_url_scheme on chrome and err_unknown_url_scheme on android.

Also read: How to get rid of spdy protocol error?

Like other chrome problem this error is also might get encountered for server error or for any bugs present in the program or code. Many developers are trying to solve this problem so you have to wait for some more days to get the working code and solution to this err_unknown_url_scheme.

How to fix err_unknown_url_scheme

Peoples are trying to solve this problem in different ways. Below I am going to share some code snippet to fix err_unknown_url_scheme. If you are a programmer then you might get some help from the below codes. I am not sure that this codes works for all.

@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
   if( url.startsWith("http:") || url.startsWith("https:") ) {
      return false;
   }
 
   Intent intent = new Intent(Intent.ACTION_VIEW);
   intent.setData(Uri.parse(url));
   cordova.getActivity().startActivity(intent);
   return true;
}

else if (url.startsWith(WebView.SCHEME_TEL) ||
         url.startsWith("sms:") ||
         url.startsWith(WebView.SCHEME_MAILTO) ||
         url.startsWith(WebView.SCHEME_GEO) ||
         url.startsWith("maps:"))
{
    try {
        Log.d(LOG_TAG, "loading in external app");
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.parse(url));
        cordova.getActivity().startActivity(intent);
    } catch (android.content.ActivityNotFoundException e) {
        LOG.e(LOG_TAG, "Error opening external app " + url + ": " + e.toString());
    }
}

Final Word

This chrome error needs to solve from the developer hand. This error has no any specific solution till now. Android user and PC user all are facing this error which needs to be sought out. I had tried to put before you what is err_unknown_url_scheme and also tried to share you information regarding how to fix err_unknown_url_scheme in chrome.

Spread the love

LEAVE A REPLY

Please enter your comment!
Please enter your name here