最近在更新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" />