Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown platform version for (i)OS #2946

Closed
ip1996 opened this issue Dec 7, 2023 · 1 comment
Closed

Unknown platform version for (i)OS #2946

ip1996 opened this issue Dec 7, 2023 · 1 comment

Comments

@ip1996
Copy link

ip1996 commented Dec 7, 2023

Describe the bug
For iOS platform the platform version is usually "unknown", e.g.: for the following user-agent string:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 the parsed entry has "unknow" platform version while it should be "16.1".

Expected behavior
The following user-agent string: Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 should give back a parsed entry with platform version "16.1"

Phone:

  • iOS

Additional context
By checking the resources iOS_A_16_1 match should cover the above described case, however in the generated browscap.ini file the following can be found:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Mobile Safari 16.2

[Mobile Safari 16.2]
Parent=DefaultProperties
Comment=Mobile Safari 16.2
Browser=Safari
Browser_Maker=Apple Inc
Version=16.2
MajorVer=16
MinorVer=2
Platform=iOS
isMobileDevice=true
Device_Type=Mobile Device
Device_Pointing_Method=touchscreen

....

[Mozilla/5.0 (*CPU iPhone OS * like Mac OS X*)*applewebkit*(*khtml*like*gecko*)*Version/16.2*Safari/*]
Parent=Mobile Safari 16.2

....

So the match only inherits the Platform of the Parent which is iOS and not iOS_A_16_1 and the PlatformVersion for iOS is by default "unknown".

It's the same for most of the Mobile Safari 16.2, see:

[Mozilla/5.0 (iPod*CPU iPhone OS 11?0* like Mac OS X*)*applewebkit*(*khtml*like*gecko*)*Version/10.0*Safari/*]
Parent=Mobile Safari 10.0

[Mozilla/5.0 (iPod*CPU iPhone OS 10?3* like Mac OS X*)*applewebkit*(*khtml*like*gecko*)*Version/10.0*Safari/*]
Parent=Mobile Safari 10.0

[Mozilla/5.0 (iPod*CPU iPhone OS 10?2* like Mac OS X*)*applewebkit*(*khtml*like*gecko*)*Version/10.0*Safari/*]
Parent=Mobile Safari 10.0

[Mozilla/5.0 (iPod*CPU iPhone OS 10?1* like Mac OS X*)*applewebkit*(*khtml*like*gecko*)*Version/10.0*Safari/*]
Parent=Mobile Safari 10.0

[Mozilla/5.0 (iPod*CPU iPhone OS 10?* like Mac OS X*)*applewebkit*(*khtml*like*gecko*)*Version/10.0*Safari/*]
Parent=Mobile Safari 10.0

[Mozilla/5.0 (iPod*CPU iPhone OS * like Mac OS X*)*applewebkit*(*khtml*like*gecko*)*Version/10.0*Safari/*]
Parent=Mobile Safari 10.0
@ip1996 ip1996 changed the title Unknown platform version for iOS Unknown platform version for (i)OS Dec 7, 2023
Copy link

github-actions bot commented Feb 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants