DroidGap: TIMEOUT ERROR! - calling webViewClient in android phonegap

泄露秘密 提交于 2019-12-11 04:55:17

问题


I am developing a android mobile application using PhoneGap.When I am trying to invoke a webservice from the javascript,I am getting DroidGap: TIMEOUT ERROR! - calling webViewClient in android phonegap


回答1:


You need to increase the timeout value in the onCreate method of your Java class that extends DroidGap

super.setIntegerProperty("loadUrlTimeoutValue", 60000);



回答2:


Make sure you have updated your PhoneGap's whitelist to allow access to any external domains. Check here for the PhoneGap documentation.



来源:https://stackoverflow.com/questions/18120078/droidgap-timeout-error-calling-webviewclient-in-android-phonegap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!