faisalman / ua-parser-js

"Unmask Your Traffic" - UAParser.js: The Essential Web Development Tool for User-Agent Detection
https://uaparser.dev/
GNU Affero General Public License v3.0
9.28k stars 1.19k forks source link

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

Closed deepaknsp11 closed 5 months ago

deepaknsp11 commented 8 months ago

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):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

nickdnk commented 8 months ago

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.

deepaknsp11 commented 8 months ago

Is there any way we can get the correct version?

nickdnk commented 8 months ago

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

faisalman commented 5 months ago

Duplicate of #659