Can't get appView after upgrading to cordova 5.1 from 3.4

I recently updated the application to cordon 5.1, and I cannot make a web request from JS.

The only compilation problem is the onCreate function of my class, which extends CordovaActivity

I used this

super.appView.getSettings().setAppCacheEnabled(false)

now he says he threw it ... I tried (WebView)super.appView, but the application crashed as an illegal listing

I read this link and tried to do the same (WebView) super.appView.getEngine (). GetView () but I still cannot make a web request .... on iOS / Desktop chrome it works fine, so nothing happens in the JS code.

+4
source share
1 answer

WebView .

WebView webView = (WebView) appView.getEngine().getView();
+2

Source: https://habr.com/ru/post/1598953/


All Articles