Ranjithkumar Ranjithkumar - 4 months ago 20
Android Question

link not loading properly in android N webview

I want open this link (http://e-sign-poc.s3-website-us-west-2.amazonaws.com/) like mobile browser using webview

mWebview = (WebView) findViewById(R.id.wb_sample);
WebSettings webSettings = mWebview.getSettings(); webSettings.setJavaScriptEnabled(true);
mWebview.setWebChromeClient(new WebChromeClient());
mWebview.setWebViewClient(new WebViewClient());

This link not loading properly in webview, but this link works perfectly in telegram webview

Answer Source

Chrome + WebView, Together

Starting with Chrome version 51 on Android 7.0 and above, the Chrome APK on your device is used to provide and render Android System WebViews.

This approach improves memory usage on the device itself and also reduces the bandwidth required to keep WebView up to date (as the standalone WebView APK will no longer be updated as long as Chrome remains enabled).

You can choose your WebView provider by enabling Developer Options and selecting WebView implementation. You can use any compatible Chrome version (Dev, Beta or Stable) that is installed on your device or the standalone Webview APK to act as the WebView implementation.