What is the iPad mini user agent?

15.1k Views Asked by At

What is the iPad mini user agent?

How to distinguish between iPad and iPad mini?

5

There are 5 best solutions below

0
On

Regarding detecting iPad mini (vs iPad 2), this article suggests that there is no way to programmatically determine whether you're running on an iPad mini (v1) vs an iPad 2. This seems to be a very deliberate choice by Apple.

I'd be delighted to be proven wrong. Anyone know any better?

3
On

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 {
    // ...
}
0
On

Here's the info from my 32GB iPad Mini in case it'll help anyone:

32GB iPad Mini
Version 8.0.2 (12A405)
Model ME280LL/A

My User Agent according to WhatsMyUserAgent.com:

Mozilla/5.0 (iPad; CPU OS 8_0_2 like Mac OS X)
AppleWebKit/60.1.4 (KHTML, like Gecko) Version/8.0
Mobile/12A405 Safari/600.1.4
0
On

console output of Navigator:

Navigator
appCodeName: "Mozilla"
appName: "Netscape"
appVersion: "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"
cookieEnabled: true
geolocation: Geolocation
language: "en-us"
mimeTypes: MimeTypeArray
onLine: true
platform: "iPad"
plugins: PluginArray
product: "Gecko"
productSub: "20030107"
standalone: false
userAgent: "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"
vendor: "Apple Computer, Inc."
vendorSub: ""
__proto__: NavigatorPrototype
0
On

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