Page 1 of 1

iOS 10.1, OS version detection

Posted: Fri Oct 21, 2016 8:18 am
by medicom
Hi,

With iOS 10.1 on iPad we noticed that device_os_vesion returns different value than advertised_device_os_version:

Code: Select all

User Agent: Mozilla/5.0 (iPad; CPU OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1

device_os_version=10.0
advertised_device_os_version=10.1
Is this expected? Which capability can be reliably used to detect the OS version in this case?

Thank you.

Re: iOS 10.1, OS version detection

Posted: Fri Oct 21, 2016 9:22 am
by aaronp
Hi Medicom,

The difference in values is as intended and the capability which you will want to reference in this case is advertised_device_os_version. This is because advertised capabilities are pulled directly from the user agent string during detection (in this case: OS 10_1), whereas the unadvertised version is a hard-coded value. Also, do note that iOS 10.1 is currently in beta but will be added to WURFL soon.

Hope this cleared things up for you. Please feel free to let us know if you have any further questions!

Thanks,

Aaron

Re: iOS 10.1, OS version detection

Posted: Mon Oct 24, 2016 1:24 am
by medicom
Thank you for the explanation.
So does this mean, that as soon as iOS 10.1 is added to WURFL, device_os_version will return 10.1 for it?

Thank you

Re: iOS 10.1, OS version detection

Posted: Mon Oct 24, 2016 9:53 am
by aaronp
Hi Medicom,

That's correct - once our data is updated the changes will be reflected in WURFL.

Aaron