Android webview Upload URL not working on Instagram webpage

I realized that it does not work in versions of Android version 4.3.

I have an android app that has a webview. When I try to download the URL " http://instagram.com " it does not work. It shows a blank page, but the facebook webpage is working. This is really important for me, please help.

WebView view = (WebView) findViewById(R.id.webView1);
    view.getSettings().setJavaScriptEnabled(true);  
    view.loadUrl("http://www.instagram.com");
+4
source share
1 answer

Have you tried using the method:

setDomStorageEnabled () ;

Sets whether the DOM storage API is enabled. The default value is false.

eg:

WebView view = (WebView) findViewById(R.id.webView1);
view.getSettings().setJavaScriptEnabled(true);  
view.getSettings().setDomStorageEnabled(true);
view.loadUrl("http://www.instagram.com");

Facebook Twitter , setDomStorageEnabled().

+6

Source: https://habr.com/ru/post/1620200/


All Articles