Closed summercms closed 4 years ago
I would argue that there is no "Android WebView Browser".
There are of course browsers that use the Android WebView, but I don't think they should ever be detected as under a generic name. If possible they should detected under their own names, and if that is not possible, the name should simply be unknown.
And there is the original "Android Browser" which is the browser that was part of the Android Open Source project from the very beginning and which used the Android WebView for rendering. The UA string that is labeled Old WebView UA is actually an inaccuracy in the Chrome documentation. It is the UA string of both the Android Browser and the WebView. And because UA strings of browsers that use the WebView are often customized to include the actual browsers name, you can assume that the plain string as shown here is the Android Browser.
@NielsLeenheer yah agree with you about a generic name going to close thi.
Currently this repo is giving the results (for my notes):
[browser] => WhichBrowser\Model\Browser Object
(
[using] => WhichBrowser\Model\Using Object
(
[name] => Chromium WebView
[alias] =>
[version] => WhichBrowser\Model\Version Object
(
[value] => 30
[hidden] =>
[nickname] =>
[alias] =>
[details] =>
[builds] =>
)
)
[family] =>
[channel] =>
[stock] => 1
[hidden] =>
[mode] =>
[type] =>
[name] =>
[alias] =>
[version] =>
)
Android WebView is a web browser developed by Google Inc. This browser renders web pages using the Blink engine.
Link: https://developer.android.com/guide/webapps/webview
Link: https://developer.chrome.com/multidevice/user-agent#webview_user_agent
WebView on Android
The Android 4.4 (KitKat) Chromium-based WebView adds Chrome/version to the user agent string.
Old WebView UA:
WebView UA in KitKat to Lollipop
If you’re attempting to differentiate between the WebView and Chrome for Android, you should look for the presence of the Version/X.X string in the WebView user-agent string. Don’t rely on the specific Chrome version number (for example, 30.0.0.0) as the version numbers changes with each release.
WebView UA in Lollipop and Above
In the newer versions of WebView, you can differentiate the WebView by looking for the wv field as highlighted below.
Other Example UA's: