Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect iDevice color [duplicate]

Tags:

javascript

ios

I don't know if there is metadata accessible for javascript in a web app, to tell which color an iPhone has. Basically what I would like to do is to detect the color of the iPhone and then use a stylesheet related to the color.

enter image description here

EDIT Forgot the question.

is there a way to detect the color of an iDevice?

like image 738
Corfitz. Avatar asked Mar 05 '13 15:03

Corfitz.


2 Answers

Model numbers are the way to do, for example:

MD381 - Black iPhone 4S
MC920 - White iPhone 4S

like image 141
BenM Avatar answered Nov 05 '22 19:11

BenM


The accepted answer for this similar question about iOS (as of early 2012) says no, you can't detect the color of an iPhone or iPod Touch. There's some speculation about identifying the device color through its serial number, but it doesn't look possible to extract the serial number through Javascript in a normal web application.

like image 1
Mark Rushakoff Avatar answered Nov 05 '22 18:11

Mark Rushakoff