iOS 10.x version is "unknown" (safari version is unknown as well) #1155

Open
jaydiablo opened this Issue Jan 9, 2017 · 0 comments

Projects

None yet

2 participants

@jaydiablo
Contributor

This UA is Safari on iOS 10:

Mozilla/5.0 (iPhone; CPU iPhone OS 10_1_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B100 Safari/602.1

Browscap 6019 is detecting the iOS version as "unknown" (and the Safari version as "0"):

browser_name_regex /^mozilla/5.0 (iphone.cpu iphone os . like mac os x.).applewebkit/.(.khtml. like gecko.).version/.safari/.$/
browser_name_pattern mozilla/5.0 (iphone
cpu iphone os * like mac os x*)applewebkit/(khtml like gecko*)*version/safari/
parent Mobile Safari Generic
comment Mobile Safari Generic
browser Safari
browser_type Browser
browser_bits 32
browser_maker Apple Inc
browser_modus unknown
version 0.0
majorver 0
minorver 0
platform iOS
platform_version unknown
platform_description iPod, iPhone & iPad
platform_bits 32
platform_maker Apple Inc

I ran the user-agent through that comparison tool that @ThaDafinser always links to and do see that some other libraries are detecting both the Safari and iOS version correctly:

http://useragent.mkf.solutions/?userAgent=Mozilla%2F5.0+%28iPhone%3B+CPU+iPhone+OS+10_1_1+like+Mac+OS+X%29+AppleWebKit%2F602.2.14+%28KHTML%2C+like+Gecko%29+Version%2F10.0+Mobile%2F14B100+Safari%2F602.1

We have other user-agents like this, it seems that perhaps the version part of the pattern just needs to be updated to support iOS 10?

Here's a chunk of some we've seen today that are all Safari with an "unknown" iOS version (showing as 10.0, 10.1 or 10.2 in the useragent string):

Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0 Mobile/14C92 Safari/602.1

Mozilla/5.0 (iPhone; CPU iPhone OS 10_1_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B100 Safari/602.1

Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A456 Safari/602.1

Mozilla/5.0 (iPad; CPU OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0 Mobile/14C92 Safari/602.1

Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A403 Safari/602.1

Mozilla/5.0 (iPad; CPU OS 10_1_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B100 Safari/602.1

Mozilla/5.0 (iPad; CPU OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A456 Safari/602.1

Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.3 (KHTML, like Gecko) Version/10.0 Mobile/14D15 Safari/602.1

Mozilla/5.0 (iPad; CPU OS 10_0_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A403 Safari/602.1

Thanks!

@jaydiablo jaydiablo changed the title from iOS version is "unknown" (safari version is unknown as well) to iOS 10.x version is "unknown" (safari version is unknown as well) Jan 9, 2017
@mimmi20 mimmi20 self-assigned this Jan 9, 2017
@mimmi20 mimmi20 added the Update Agent label Jan 9, 2017
@mimmi20 mimmi20 added this to the 6020 milestone Jan 9, 2017
@mimmi20 mimmi20 added a commit to mimmi20/browscap that referenced this issue Jan 9, 2017
@mimmi20 mimmi20 #1155: add Safari Mobile 10, add iOS 10.x 3e95642
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment