0

I would like to override the shouldInterceptRequest() method found here: https://developer.android.com/reference/android/webkit/WebViewClient.html

So that I can intercept requests that are issued by my app within the Cordova WebView.

I am trying to replicate the method seen here: Android Phonegap - TIMEOUT ERROR when trying to set a WebViewClient

but it seems as though some of the methods and classes are not recognized (Cordova 6.5.0):

  • this.appView.setWebViewClient() is not recognized by android studio
  • CordovaWebViewClient is also giving me syntax error.

Is this method no longer available in newer versions of cordova?

I see there there is something called CordovaWebViewEngine, but I can't find much information on it.

Community
  • 1
  • 1
Gabe O'Leary
  • 2,010
  • 4
  • 24
  • 41
  • 1
    Closed it as duplicate of http://stackoverflow.com/questions/37432072/why-cordovawebviewclient-not-working-in-cordova-6-anymore, see my answer there – jcesarmobile May 11 '17 at 15:18
  • @jcesarmobile Thanks that was exactly what I needed! Now I've run into another issue, but it is less cordova related: http://stackoverflow.com/questions/43946268/getting-around-x-frame-options-deny-in-an-android-webview – Gabe O'Leary May 12 '17 at 20:51

0 Answers0