You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2013/06/10 18:05:19 UTC

[jira] [Resolved] (CB-3749) CordovaWebView timeout error

     [ https://issues.apache.org/jira/browse/CB-3749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-3749.
----------------------------

    Resolution: Won't Fix

Don't remove those things.  Cordova is designed so that you build one APK for all versions.  You can build targeting 4.2.2 and still install the same APK on a 2.3 device.
                
> CordovaWebView timeout error
> ----------------------------
>
>                 Key: CB-3749
>                 URL: https://issues.apache.org/jira/browse/CB-3749
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.5.0, 2.6.0, 2.7.0, 2.8.0
>         Environment: Windows 7 64bit, eclipse, android r10, 
> tablet: android 4.1.1
>            Reporter: Noppes
>            Assignee: Joe Bowser
>
> I first got this error when I was playing around with my own app and then I started testing and found out it also happens in the given example.
> When I run the 2.7.0 android example and just rotate my tablet a couple of times and tab the screen a bit this error comes out on screen:
> Application Error
> TheConnection to the server was unsuccessful. 
> (javascript:try:{cordova.require('cordova/
> channel').onDestroy.fire();}catch(e){console.log
> ('exception firing destroy event from native');};)
> and LogCat says this:
> 06-10 16:17:28.253: E/CordovaWebView(6470): CordovaWebView: TIMEOUT ERROR!
> 06-10 16:17:28.253: D/Cordova(6470): CordovaWebViewClient.onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=javascript:try{cordova.require('cordova/channel').onDestroy.fire();}catch(e){console.log('exception firing destroy event from native');};
> 06-10 16:17:28.253: D/DroidGap(6470): onMessage(onReceivedError,{"errorCode":-6,"url":"javascript:try{cordova.require('cordova\/channel').onDestroy.fire();}catch(e){console.log('exception firing destroy event from native');};","description":"The connection to the server was unsuccessful."})
> The only things I changed from the example are inside the manifest, because Im using android 10 I have to remove the android:hardwareAccelerated="true" and android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
> Otherwise its completely the same. This error happens on my NextBook table which runs on android 4.1.1 and on my Sony Xperia s which runs on android 4.0.4.
> While googling for the CordovaWebClient timeout error I came across more people that have the same problem. Some suggested to increase the urlTimeout, but that only delays the problem. On stackoverflow http://stackoverflow.com/questions/16424578/phonegap-cordova-2-7-0-error-when-pausing-app it says that this started after 2.4.0 and that is correct. When I use 2.4.0 the error does not occure

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira