Search code examples
androidgoogle-chromegoogle-chrome-devtoolsweb-testing

Oneplus 6 viewport size for chrome Emulated Devices


I would like to add OnePlus 6 as custom devices in the emulated devices list of Google Chrome but I don't manage to find:

  • Device pixel ratio
  • User agent string

Missing params for device pixel ratio & user agent for oneplus 6 emeulated device in chrome


Solution

  • For more information you can check out this page.

    According to that page:

    • width x height: 568x320
    • Device pixel ratio: 2.6252

    For user agent though, they list many. The one I use is:

    • User agent string: Mozilla/5.0 (Linux; Android 9; ONEPLUS A6000 Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.64 Mobile Safari/537.36