App error and cordova deviceready not fired


#1

Hi,

I have problem with two things.

I get cordova not fired device ready in 5 seconds.
I tried rm and add both platforms android/ios and all of plugins, but it didn’t help.

And when testing on Samsung i get this "The connection to the server was unsuccessful. (file:///android_asset/www/index.html)"
and even on my phone sometimes with no other error.

Can you help me please?


Application error. The connection to the server was unsuccessful
#2

Add the next line into the config.xml in side the <platform name=“android”> tag.

<preference name=“loadUrlTimeoutValue” value=“700000” />


#3

Hi!

What means value=“700000” ?
Seconds or milliseconds ??

Thanks,


#4

what mean loadUrlTimeoutValue?


#5

Did someone solved this issue? I’ve tried @rosell_iiia_csic_es solution but it doesn`t work for me.


#6

it worked for me like a charm