Cordova 3.6.0 remote url CordovaWebView: TIMEOUT ERROR

I am using Cordova 2.9.0

google updated Cordova

. I started using Cordova 3.6.4

I just opened remote urls:

public void onCreate(Bundle savedInstanceState)
{
        super.onCreate(savedInstanceState);
        super.init();
        super.loadUrl(getString(R.string.mainURL), 4000);
}

      

config.xml

<access origin="http://google.com" subdomains="true" />
<preference name="loadUrlTimeoutValue" value="60000" />

      

The app works with Cordova 2.9.0

, but not with Cordova 3.6.4

. This is what it returns Cordova 3.6.4

:

E/CordovaWebView﹕ CordovaWebView: TIMEOUT ERROR!

How to open a remote url with Cordova webview?

+3


source to share


1 answer


<access origin="http://google.com" subdomains="true" />

replace



<access origin="*" subdomains="true" />

      

+2


source







All Articles