Opened 3 years ago

Closed 3 years ago

Last modified 8 months ago

#2694 closed Bug (fixed)

UserAgentParser: should report Android's browser as Safari

Reported by: marcello.ceschia Owned by: vipsoft
Priority: low Milestone: 1.6 Piwik 1.6
Component: Core Keywords:
Cc: Sensitive: no

Description

XXX.XXX.XXX.XXX - - [06/Oct/2011:19:23:45 +0200] "GET /dummypage.html HTTP/1.1" 200 2843 "http://www.example.org/" "Mozilla/5.0 (Linux; U; Android 2.2; de-de; HTC Desire 2.33.161.2 Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

will be detected as "Android 4.0 with plugins flash enabled"

Change History (7)

comment:1 Changed 3 years ago by vipsoft (robocoder)

  • Milestone set to 1.6 Piwik 1.6
  • Owner set to vipsoft

If you're looking at the Browser report, it's reporting the browser version. Version/4 is explicitly set in the user agent so it is customary to use that value. Using the Android OS version is wrong imho. Maybe we should just report it as Safari or Mobile Safari?

comment:2 Changed 3 years ago by vipsoft (robocoder)

  • Summary changed from wrong android version detection to UserAgentParser: should report Android's browser as Safari

A patch for Chrome on Android reportedly landed this past week, so we'll report as Safari to avoid later confusion.

comment:3 Changed 3 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5272]) fixes #2694 - detect current Android browser as Safari (like iPad/iPhone/iPod); added a ficticious mobile Chrome user agent (commented out for now, but it works)

comment:4 Changed 3 years ago by vipsoft (robocoder)

(In [5273]) refs #2694 - remove remnants of "Android" browser (obsolete)

comment:5 Changed 3 years ago by vipsoft (robocoder)

FYI if/when mobile Chrome comes to Android, it'll be reported as Chrome

comment:6 Changed 8 months ago by Zefling

This bug is not fixed, the problem still persists in version 1.12.

comment:7 Changed 8 months ago by matt (mattab)

What is the bug exactly? what user agent, what is behavior VS what do you expect? create a new ticket

Note: See TracTickets for help on using tickets.