viebel
viebel

Reputation: 20670

What is the iPad mini user agent?

What is the iPad mini user agent?

How to distinguish between iPad and iPad mini?

Upvotes: 10

Views: 15295

Answers (5)

aaaidan
aaaidan

Reputation: 7316

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?

Upvotes: 1

DaveyJake
DaveyJake

Reputation: 2439

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

Upvotes: 0

ds111
ds111

Reputation: 379

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

Upvotes: 0

Mick MacCallum
Mick MacCallum

Reputation: 130193

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

Upvotes: 4

jaco
jaco

Reputation: 3506

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

Upvotes: 4

Related Questions