Phonegap Build: viewebclient timeout error on android device

  • 10
  • Problem
  • Updated 5 years ago
  • In Progress
I created this stackoverflow thread http://stackoverflow.com/questions/91.... I'm building an app with phonegap build, where I use a lot of jquerymobile, and I keep getting a timeout error, which I don't understand since all my references are local.
Photo of Jakob

Jakob

  • 3 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 10
Photo of erum hannan

erum hannan

  • 2 Posts
  • 0 Reply Likes
i m using cordova 2.7.0 and upgraded to cordova 2.8.0 but still this error exists when trying to dowload latest apk from server so the time taking to download the apk is high and this error appears:
08-24 01:01:55.589: D/Cordova(2067): 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');};
08-24 01:01:55.589: D/DroidGap(2067): 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."})
dnt know what's the solution ? if any one know please post the solution here
Photo of François Leblanc

François Leblanc

  • 2 Posts
  • 0 Reply Likes
stil exist on 2.9.0 too
Photo of Fernando Brigido Barranha Junior

Fernando Brigido Barranha Junior

  • 39 Posts
  • 0 Reply Likes
Hey the error persists.... is there a date to fix it?
Photo of Gianfranco Fedele

Gianfranco Fedele

  • 1 Post
  • 0 Reply Likes
my solution:

super.setIntegerProperty("loadUrlTimeoutValue", 99999999);
Photo of Heemanshu Bhalla

Heemanshu Bhalla

  • 13 Posts
  • 0 Reply Likes
I think that's no right solution as when i used this line in MainActivity before super.loadurl it not going building the phonegap app anymore
Photo of Bruno Casado

Bruno Casado

  • 1 Post
  • 0 Reply Likes
In my tests, i got some erros when my internet connection is down.

Because i had external link (Font adobe cantarell) my app enter in timeout.

I solve in part by not use external links.

But some times this error come again. I notice that when the app stay some time in pause mode, and i return to him, obviously the android close the app, and when this happens the app enter in timeout.

I am afraid that when my app is published, this problem can happen with my clients.

ps: sorry for my english :)
Photo of Marquiño Capon Albarracin

Marquiño Capon Albarracin

  • 1 Post
  • 0 Reply Likes
* in manifest :

android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"

* change index.html for othername.html
Photo of Heemanshu Bhalla

Heemanshu Bhalla

  • 13 Posts
  • 0 Reply Likes
This is very old topic But i think this problem is Solved Even Now . I am having same error .

A network error occurred. (file:///android_asset/www/index.html?#)

Can phonegap Help Us To Solve this error What I searched is this error is coming due to Timeout So I think we need to increase timeout what do you think
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Yes. Start a new thread. This thread is much too old.

- What you are trying to do. Be specific, not general.
- What have you tried.
- What did not work as expected.
- What level of experience you have with mobile development.