1

I'm building an Android application using Cordova, Ionic and Angular. At some point the application has stopped running on the device. When I run:

ionic run android --verbose

I get the splash screen on my tablet, but in the mac console I get:

after LAUNCH SUCCESS

No scripts found for hook "after_run".

and then on the device screen I get the dreaded Application Error: The connection to the server was unsuccessful (file:///android_asset/www/index.html)

followed by the big crash..

I tried looking for the "after_run" string in the code, but I only find it in the documentation, so I have no idea what could be causing this.

any help is appreciated.

cordovajswhat
  • 11
  • 1
  • 3

1 Answers1

1

The problem might be solved by adding a timeout to call your index.html

In your config.xml file add this line:

<preference name="loadUrlTimeoutValue" value="700000" />

More about this can be found here.

Community
  • 1
  • 1
Tomislav Stankovic
  • 3,090
  • 16
  • 33
  • 41