Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the definition of mobile field? #329

Closed
woody-li opened this issue Feb 3, 2023 · 3 comments
Closed

What's the definition of mobile field? #329

woody-li opened this issue Feb 3, 2023 · 3 comments

Comments

@woody-li
Copy link

woody-li commented Feb 3, 2023

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',
}
@miketaylr
Copy link
Collaborator

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

@woody-li
Copy link
Author

woody-li commented Feb 7, 2023

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

@miketaylr
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants