Open JainMayank99 opened 2 years ago
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
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).
Support for client hints was added to Matomo version 6
@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?
+1 here on that @etienne-martin
Tested on : https://lx3rzx16x9.codesandbox.io/