Android mobile user agent?

前端 未结 4 1928
萌比男神i
萌比男神i 2021-01-01 18:16

I\'m currently making an android application for a forum, basically it just loads the website in a webview and that works fine and all, but I\'m trying to add an option to v

4条回答
  •  暖寄归人
    2021-01-01 18:52

    As 2019 for Android devices have a look to: https://developer.chrome.com/multidevice/user-agent

    So as documentation says:

    WebView UA in Lollipop and Above

    In the newer versions of WebView, you can differentiate the WebView by looking for the wv field as show in bold below.

    Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36

提交回复
热议问题