You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Flavio Righi (JIRA)" <ji...@apache.org> on 2018/08/01 07:56:00 UTC

[jira] [Created] (CB-14239) http errors not managed in loaderror event in android

Flavio Righi created CB-14239:
---------------------------------

             Summary: http errors not managed in loaderror event in android 
                 Key: CB-14239
                 URL: https://issues.apache.org/jira/browse/CB-14239
             Project: Apache Cordova
          Issue Type: Improvement
          Components: cordova-plugin-inappbrowser
            Reporter: Flavio Righi


On android platforms the inappbrowser plugin not manage at all http errors, instead load the error page as a normale one.

If browse on a link that thrown 4xx or 5xx code, the loaderror event is not thrown.

After some investigation I've founded cause, it's caused by an Android missin callback to manage this, but they have introduced a new callback from API23.

 

You can check [here |https://developer.android.com/reference/android/webkit/WebViewClient#onReceivedHttpError(android.webkit.WebView,%20android.webkit.WebResourceRequest,%20android.webkit.WebResourceResponse)] the added android callback.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org