3
votes

We're doing some server side device detection and need to drive ipad mini users to one page and ipad users to another.

Is there any thing that differentiates the two user agents?

iPad

Mozilla/5.0 (iPad; CPU OS 7_0_3 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B511 Safari/9537.53`

Mini

Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53

The only thing I see is the Mobile/11B511 and Mobile/11B554a, but is that a persistent value that we can work off?

1
The 11B554a and 11B511 are related to the iOS version, not the device.rmaddy
possible duplicate of Detect iPad Mini in HTML5raina77ow

1 Answers

0
votes

Trying to do a device detection these days is hard and not reliable. I would recommend you instead of device detection to do a detection based on browser capabilities like I described it here.

Using this approach you are interested only if the browser supports a feature and you don't care about the device name/vendor.