Sometimes run the App on the device with
ionic cordova run android -lc a “Application Error” displayed on the device.
The connection to the server was unsuccessful (<myUrl>) But after a few seconds, the app is loaded. I see it in the background. The DOM is ready. But the timeout for the connection error has expired.
If I close this error message with “ok” the app close.
Is there a way to speed it up? Or increase the timeout value?
Btw. Sometimes it works great. But the most of time, it tooks too long to load. Until the connection timeout.
[16:26:56] console.log: deviceready has not fired after 5 seconds. [16:26:56] console.log: Channel not fired: onDOMContentLoaded <Here, after a few second the connnection timeout error is displayed.> [16:27:24] console.log: Angular is running in the development mode. Call enableProdMode() to enable the production mode. <The app is loaded.>
I already reinstalled the platform and plugins.
It’s really annoying that the App is 2 seconds after the connection error ready. argh… Ionic should set the timeout time from 5 to 10 seconds!