device-detector-js icon indicating copy to clipboard operation
device-detector-js copied to clipboard

Windows 11 detected as Windows 10

Open JainMayank99 opened this issue 2 years ago • 5 comments

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

JainMayank99 avatar Feb 03 '22 08:02 JainMayank99

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

Findus23 avatar Feb 06 '22 11:02 Findus23

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 avatar Feb 09 '22 02:02 etienne-martin

Support for client hints was added to Matomo version 6

etienne-martin avatar Jun 06 '22 13:06 etienne-martin

@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?

coreymaroney avatar Sep 16 '22 14:09 coreymaroney

+1 here on that @etienne-martin

rdvo avatar Jan 19 '23 03:01 rdvo