Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the iPad mini user agent?

What is the iPad mini user agent?

How to distinguish between iPad and iPad mini?

like image 342
viebel Avatar asked Oct 24 '12 13:10

viebel


2 Answers

The iPad Mini has the same resolution of iPad 2, and it shouldn't be a retina display so you can get that info by JavaScript with this code:

if (window.devicePixelRatio >= 2) {
    // retina display...
} else {
    // ...
}
like image 85
jacoz Avatar answered Sep 21 '22 16:09

jacoz


On my 16 gig iPad mini whatsmyuseragent.com returned:

Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A406 Safari/8536.25

like image 39
Mick MacCallum Avatar answered Sep 21 '22 16:09

Mick MacCallum