You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
ip1996
changed the title
Unknown platform version for iOS
Unknown platform version for (i)OS
Dec 7, 2023
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.
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:
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:So the match only inherits the Platform of the Parent which is
iOS
and notiOS_A_16_1
and the PlatformVersion foriOS
is by default "unknown".It's the same for most of the Mobile Safari 16.2, see:
The text was updated successfully, but these errors were encountered: