When I try to run my worklight hybrid app in android emulator, its giving me timeout error. But, its running well on my android phone.
Help me how to run it in android emulator. Btw, I increased loadUrlTimeoutValue to 60sec. still its not working
When I try to run my worklight hybrid app in android emulator, its giving me timeout error. But, its running well on my android phone.
Help me how to run it in android emulator. Btw, I increased loadUrlTimeoutValue to 60sec. still its not working
I had been having these issues now and then. I have realized why this is. If you see an error in the Logcat like this
CordovaWebView: TIMEOUT ERROR!
It means that it takes too long to load the code (maybe your js).
In the workbench, expand the android folder > native folder > res folder > xml folder > and open config.xml file.
add the following in the preference section.
<preference name="loadUrlTimeoutValue" value="60000" />
Build all and deploy again.
Make sure that in the file application-descriptor.xml, you use the actual network IP address of your computer, as the value for worklightServerRootURL
.