donatj/PhpUserAgent

Running Firefox on iPad shows Safari

gjtyler opened this issue · 2 comments

User Agent is:
Mozilla/5.0 (iPad; CPU OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) FxiOS/6.1 Mobile/14D27 Safari/602.4.6

Reports iPad, Safari, 602.4.6
Should report iPad, Firefox, 6.1

The FxiOS keyword should take priority over AppleWebKit and Safari

Do you have a good reason to detect Firefox as seperate from Safari on iOS? I've hesitated to add it because it's just Safari wrapped in a different skin.

I am using the data for metrics reporting, not for generating different code.
I show the user which devices and browsers they have used to access my site.
I actually didn't know that Firefox is using the Safari rendering engine - thanks for that information.