Ionic App 启动时报Application Error – The connection to the server was unsuccessful

最近在更新App的时候,发现在华为手机上报这个错误,有点困惑,查找资料分析,大概原因是程序在加载index.html网页时,加载的资源过多,造成时间超时,

这个时原因分析https://stackoverflow.com/questions/12319809/application-error-the-connection-to-the-server-was-unsuccessful-file-andr

具体的解决方案是在config.xml文件中添加如下延时设置:

 <!--解决程序启动问题:Application Error - The connection to the server was unsuccessful--> <preference name="loadUrlTimeoutValue" value="700000" />

技术分享

相关文章