ua-parser-js icon indicating copy to clipboard operation
ua-parser-js copied to clipboard

Display incorrect macOS Sonoma, macOS Ventura version for all latest version as 10.15

Open deepaknsp11 opened this issue 3 months ago • 3 comments

Which version of the library that you use, UAParser.js v2.0.0-beta.2

For the issue related with detection result, you can use the demo section in https://uaparser.js.org to confirm

Describe the bug I am using the UAParse Js to detect the mac OS version but it always return 10.15 for macOS Sonoma, macOS Ventura etc even these are latest version 14, 13 respectively

To Reproduce Steps to reproduce the behavior:

  1. Go to Mac Os macOS Ventura
  2. Click on https://www.truetraveller.com/UnsupportedmacOS.html
  3. Check in console
  4. It always return 10.15 for higher version of Mac OS

Expected behavior It should return correct version of the MacOS

Screenshots Attached console screen shot for latest MacOS return default 10.15

Desktop (please complete the following information):

  • OS: Mac OS Sonoma ScreenShot_1

  • Browser chrome

  • Version 122

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

deepaknsp11 avatar Mar 14 '24 15:03 deepaknsp11

Apple always sends 10_15 as the version header in their User-Agent for privacy reasons. You cannot determine the version from the User Agent alone.

nickdnk avatar Mar 19 '24 14:03 nickdnk

Is there any way we can get the correct version?

deepaknsp11 avatar Mar 19 '24 15:03 deepaknsp11

See https://github.com/faisalman/ua-parser-js/issues/659 - your issue is essentially a duplicate.

nickdnk avatar Mar 19 '24 15:03 nickdnk