Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0
So, you see that it is very hard to see what type of device is related to output of the userAgent. There is not clear structure in the userAgent of different devices. Thus, it is a hard job to discover the right device from each individual string. In the case of iOS devices it is not even possible to detect the specific name of device.
Device detection with our API
- The userAgent
- The screen height
- The screen Width
- The pixel density
- The CPU performance of the device
Instead of just returning type: "iPhone" (other API's) it is possible to detect type: "iPhone XS MAX". However, this is just one functionality of the device detection API. In this blogpost I describe all the different functionalities of the API.