What is a good way to identify iOS device from User Agent?

1.5k Views Asked by At

Do all iOS devices send iPhone, iPad or iPod as part of the User Agent?

Is it a good practice to test for those three strings to identify iOS devices?

Does it work for all browsers including Safari, Firefox, Opera(?), etc?

Using Ruby. I know I can use a gem but don't think it is necessary...

1

There are 1 best solutions below

2
J.Sanchez On

The rendering software for IOS commonly used is AppleWebKit (safari, chrome and firefox). It is included in user agent. Some other browser could differ.