Hy! A similar questions have been asked on this platform (stackoverflow) like this, etc. But I need to get the mobile details upon when an Iphone,Ipad or an Ipod user will visit my site I will get his details using Javascript, or Java/Jsp/Servlets. The details I need are as follows:
Model Name // IPhone 3g, Iphone 4s, IPhone 5s, Iphone 5c, IPad 1 , etc
OS Type //IOS
OS Version //6.1.1 or 6.1.2 etc
According to my research many users have done through javascript but they only just detect Model not complete with 4s etc. Also I came across this which give specific code against UserAgent of different Iphone/Ipad/Ipod but when I tested through online simulators there were 50% chances of there correction. Kindly guide.
Edit:
There is a correction! I came to know that in user-agent there is a build version (Build Version of an OS) included through which we can check that that a specific OS say 6 was released for multiple devices say Iphone 3gs, 4s , Ipad and so on. But is there a build for hardware specific firmware which uniquely identifies the device?