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.
- 3 Posts
- 0 Reply Likes
Posted 8 years ago
- 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
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
- 2 Posts
- 0 Reply Likes
Fernando Brigido Barranha Junior
- 39 Posts
- 0 Reply Likes
- 1 Post
- 0 Reply Likes
my solution:
super.setIntegerProperty("loadUrlTimeoutValue", 99999999);
super.setIntegerProperty("loadUrlTimeoutValue", 99999999);
- 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
- 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 :)
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 :)
- 1 Post
- 0 Reply Likes
* in manifest :
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
* change index.html for othername.html
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
* change index.html for othername.html
- 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
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
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.
- 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.
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 60 Followers
-
PhoneGap Build
- 15111 Conversations
- 274 Followers




