Android, webview user agent vs browser user agent

前端 未结 7 1030
眼角桃花
眼角桃花 2020-12-03 03:14

I\'m building my website and I want to know whether the user is using Android\'s browser or an app with a webview.

is it possible ??

7条回答
  •  失恋的感觉
    2020-12-03 03:38

    As per Chrome dev docs: "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."

提交回复
热议问题