CordovaWebView: TIMEOUT ERROR

前端 未结 4 932
庸人自扰
庸人自扰 2021-02-15 22:41

I am implementing jquery.min.js in my phonegap app but it is showing me the CordovaWebView time out error. I have also tried

super.setIntegerProperty(\"loadUrlTi         


        
4条回答
  •  太阳男子
    2021-02-15 23:43

    You can increase the timeout value, see this link

    super.setIntegerProperty("loadUrlTimeoutValue", 60000); 
    

    update

    From the example I replaced my old code with this snippet and it works:

    I added import org.apache.cordova.* and I put super.loadUrl(Config.getStartUrl()) instead of the url method

    import org.apache.cordova.*;
    import android.os.Bundle;    
    public class MyApp extends DroidGap
    {    
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState)
        {           
            super.onCreate(savedInstanceState);
            super.loadUrl(Config.getStartUrl());            
        }
    

提交回复
热议问题