What would be the User Agent string for iPhone 8, iPhone 8 Plus and iPhone X?

Tushar Vaghela picture Tushar Vaghela · Sep 17, 2017 · Viewed 16.1k times · Source

In a device detection, what would be the user agent for the new iPhone 8, iPhone 8 Plus and iPhone X?

Answer

Tamás Sengel picture Tamás Sengel · Sep 17, 2017

Here is the user agent string for them:

Mozilla/5.0 (iPhone; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1

Source:

The iOS 11 GM firmware model number is 15A372, which will very likely be the same as the model number of the final iOS 11.

Here is a user agent from a beta version of iOS 11, which has the AppleWebKit and Safari version number.