Is there a way to make a WebView widget use Chrome instead of the built-in WebKit browser on Samsung / LG Android phones?

When using WebView in an Android app, Android will use various browsers under the hood to display the web page. For example, prior to Android 4.4, Samsung’s devices will use a WebKit-based browser, which is supplied by Samsung (even if Chrome is installed and is the default web browser). Google Nexus / HTC phones come pre-installed with Chrome and they will use it to render web content.

We are having problems with the WebKit browser on Samsung / LG devices with sites such as Google Drive. When opened on one device in Chrome - they are displayed fine, but when they are displayed in our application (which uses the built-in browser) - they cannot display content.

I'm looking for a way to get WebView to use Chrome (if installed) instead of the built-in browser on devices that are causing problems.

Can anyone help?

+4
source share
1 answer

When using WebView in an Android app, Android will use different browsers under the hood to display the web page.

, WebView -, .

, pre Android 4.4 Samsung WebKit, Samsung ( Chrome - ).

, WebView WebKit 4.4, WebKit.

Google Nexus/HTC Chrome, -.

, WebView WebKit 4.4, Chrome, make , . , Nexus 4.4.

WebView Chrome ( ) , .

. - (, , Mozilla GeckoView, , Chromium Android, ), Android 4.4 WebView, - . API -, . , - .

+3

All Articles