WICG/ua-client-hints

What's the definition of mobile field?

woody-li opened this issue · 3 comments

What's the exact value of mobile field on a tablet device?
Is the field refer to phone devices only?

I tested on Android Chorme, got true on phone but false on tablet.

Tablet data:

{
  brands: [
    { brand: 'Not_A Brand', version: '99'  },
    { brand: 'Google Chrome', version: '109' },
    { brand: 'Chromium', version: '109' },
  ],
  mobile: false,
  platform: 'Android',
}

That will depend on each browser - Chrome for Android on a tablet device does not include the "Mobile" token in the UA: https://developer.chrome.com/docs/multidevice/user-agent/#chrome-for-android, but Firefox has had a "Tablet" token (at least historically - not sure if they removed it): https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox#mobile_and_tablet_indicators

Thanks for your reply. Known it depends browser implements.
Want to know what's the definition in standard specification.

I think we can consider this a duplicate of #333.