You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/12/06 07:48:31 UTC

[GitHub] eXpliCo opened a new issue #601: Reload app with backup url if first fails

eXpliCo opened a new issue #601: Reload app with backup url if first fails
URL: https://github.com/apache/cordova-android/issues/601
 
 
   I want to be able to catch when the page fails to load in Cordova, fails to load in "CordovaWebViewImpl.loadUrl(String url)" function. I've noticed if I implemented the 
   `
   WebViewClient.onReceivedHttpError(WebView view, WebResourceRequest request, WebResourceResponse errorResponse)
   `
   to notify all plugins that the error has happened then I'm able to fetch the error. But that requires me to change the base cordova code. Is there a way to do this and not change the base cordova code and extend some class a simple way.
   
   What I want to do is that if the page that is trying to be loaded returns a 500 error then I want to try to load another url that is fetched from the configuration. Is this possible with current cordova impl?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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