salari mameri
salari mameri

Reputation: 228

Webview loading URL does not work for ajax requests

My code:

WebView view = (WebView) findViewById(R.id.myWeb);
view.getSettings().setJavaScriptEnabled(true);  
view.getSettings().setDomStorageEnabled(true);
view.loadUrl("https://www.test.com");

This code load website and links ( href ) works fine, but if in website used ajax request , not will works and not responding

Upvotes: 0

Views: 312

Answers (1)

Abdullah Işık
Abdullah Işık

Reputation: 36

Try this library

dependencies {
    implementation'com.github.delight-im:Android-AdvancedWebView:v3.0.0'
}

Upvotes: 1

Related Questions