[
https://issues.apache.org/jira/browse/CB-14239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flavio Righi updated CB-14239:
------------------------------
Description:
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 documentation about added android callback onReceivedHttpError(...)
was:
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.
> 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
> Priority: Major
> Labels: easyfix, usability
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> 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 documentation about added android callback onReceivedHttpError(...)
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]