ua-parser-js
ua-parser-js copied to clipboard
Display incorrect macOS Sonoma, macOS Ventura version for all latest version as 10.15
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:
- Go to Mac Os macOS Ventura
- Click on https://www.truetraveller.com/UnsupportedmacOS.html
- Check in console
- 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
-
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.
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.
Is there any way we can get the correct version?
See https://github.com/faisalman/ua-parser-js/issues/659 - your issue is essentially a duplicate.
Duplicate of #659