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" />


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM