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

Windows 11 detected as Windows 10 #140

Open
JainMayank99 opened this issue Feb 3, 2022 · 5 comments
Open

Windows 11 detected as Windows 10 #140

JainMayank99 opened this issue Feb 3, 2022 · 5 comments

Comments

@JainMayank99
Copy link

Tested on : https://lx3rzx16x9.codesandbox.io/

@JainMayank99 JainMayank99 changed the title Not able to detect windows 11 Windows 11 detected as Windows 10 Feb 3, 2022
@Findus23
Copy link

Findus23 commented Feb 6, 2022

This seems to be intentional by Microsoft that Windows 11 sends the same user agent as Windows 10:
https://stackoverflow.com/a/69650125/4398037
https://docs.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11

@etienne-martin
Copy link
Owner

Microsoft seems to be pushing for "User-Agent Client Hints" as a less fingerprintable way to expose device information. Client hints are additional headers that are sent along with the user-agent but unfortunately this library is not equipped to deal with these new headers.

And since this library depends on Matomo device-detector for it's database of regexes, we would need to wait for them to add support for client hints (assuming that's something they want to tackle).

@etienne-martin
Copy link
Owner

Support for client hints was added to Matomo version 6

@coreymaroney
Copy link

@etienne-martin I see PR #146 open for updating to version 6. Is there a way I can assist you with getting that over the finish line?

@rdvo
Copy link

rdvo commented Jan 19, 2023

+1 here on that @etienne-martin

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

6 participants
@Findus23 @etienne-martin @rdvo @coreymaroney @JainMayank99 and others