Cordova 3.0, Application Error The Connection to the server was unsuccessful. (Timeout)

kcgolden

I've am getting this timeout from trying to load my local index.html file and I cannot figure out how to increase the timeout time from the default 20 seconds. I have seen posts where people use the following lines in their droidgap extension, onCreate method:

super.setIntegerProperty("loadUrlTimeoutValue", 70000); super.loadUrl("file:///android_asset/www/index.html");

But even doing so, the app still times out after just 20 seconds. It takes longer than 20 seconds for that index.html file to load because it is using a window.open (inAppBrowser) call to fetch a remote resource.

Is there a new place where the timeout is set in cordova 3.0? I'm migrating from phonegap 2.3, where this issue didn't happen.

demaniak

Check this link.

For me it was a case where we had to do a lot of ajax stuff when the app started up. Often (very regularly, but not every time) this would then seem to interfere with the low level "app is launched and running" signal to Android (Cordova?). And then the app get's killed with the above error after about 20 seconds. So launching with an almost empty index.html and then getting that to re-direct to the real page - that seems to fool all the parties involved into believing the app is fully up and running in no-time flat.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Cordova 3.0, Application Error The Connection to the server was unsuccessful. (Timeout)

From Dev

SpringBoard failed to launch application with error : -3 & 0

From Dev

pgadmin3 server connection and authentication error

From Dev

What is "Connect Timeout" in sql server connection string?

From Dev

Cordova webview TIMEOUT ERROR

From Dev

How to increase the connection timeout for mysql connection from c# application?

From Dev

Database connection timeout error in postgresql

From Dev

Implementing and testing WebSocket server connection timeout

From Dev

Cordova 3.6.0 remote url CordovaWebView: TIMEOUT ERROR

From Dev

Error "The connection to the server was unsuccessful." in Cordova and jQuery

From Dev

C3P0 connection pool gives connection timeout error with this configuration

From Dev

c3p0 connection Pooling error - Oracle RAC

From Dev

Error code 3 Timeout when i try to get geolocation using Cordova in platform Android

From Dev

Connection timeout for ssh server

From Dev

Spring - server.connection-timeout not working

From Dev

Connection timeout for ssh server

From Dev

Connection Timeout when application is Idle

From Dev

Connection of c3p0 throws exception after MySQL timeout expired

From Dev

XPages (Application Timeout vs Session Timeout) vs (Server Session Timeout)

From Dev

Error Transfer artifact : Connection Timeout

From Dev

Geolocation is giving timeOut error cordova android application

From Dev

Increase connection Timeout connect to server

From Dev

Pymongo error Server Timeout

From Dev

get connection timeout while checking a port on server

From Dev

What have to happen with database connection after hibernate.c3p0.timeout is reached?

From Dev

spring JPA with c3p0 is having connection timeout on first request

From Dev

The connection to the server was unsuccessful Android ionic2 Angular

From Dev

Ionic: the connection to the server was unsuccessful

From Dev

SQL Server connection Error Number:2,State:0,Class:20

Related Related

  1. 1

    Cordova 3.0, Application Error The Connection to the server was unsuccessful. (Timeout)

  2. 2

    SpringBoard failed to launch application with error : -3 & 0

  3. 3

    pgadmin3 server connection and authentication error

  4. 4

    What is "Connect Timeout" in sql server connection string?

  5. 5

    Cordova webview TIMEOUT ERROR

  6. 6

    How to increase the connection timeout for mysql connection from c# application?

  7. 7

    Database connection timeout error in postgresql

  8. 8

    Implementing and testing WebSocket server connection timeout

  9. 9

    Cordova 3.6.0 remote url CordovaWebView: TIMEOUT ERROR

  10. 10

    Error "The connection to the server was unsuccessful." in Cordova and jQuery

  11. 11

    C3P0 connection pool gives connection timeout error with this configuration

  12. 12

    c3p0 connection Pooling error - Oracle RAC

  13. 13

    Error code 3 Timeout when i try to get geolocation using Cordova in platform Android

  14. 14

    Connection timeout for ssh server

  15. 15

    Spring - server.connection-timeout not working

  16. 16

    Connection timeout for ssh server

  17. 17

    Connection Timeout when application is Idle

  18. 18

    Connection of c3p0 throws exception after MySQL timeout expired

  19. 19

    XPages (Application Timeout vs Session Timeout) vs (Server Session Timeout)

  20. 20

    Error Transfer artifact : Connection Timeout

  21. 21

    Geolocation is giving timeOut error cordova android application

  22. 22

    Increase connection Timeout connect to server

  23. 23

    Pymongo error Server Timeout

  24. 24

    get connection timeout while checking a port on server

  25. 25

    What have to happen with database connection after hibernate.c3p0.timeout is reached?

  26. 26

    spring JPA with c3p0 is having connection timeout on first request

  27. 27

    The connection to the server was unsuccessful Android ionic2 Angular

  28. 28

    Ionic: the connection to the server was unsuccessful

  29. 29

    SQL Server connection Error Number:2,State:0,Class:20

HotTag

Archive