matomo-org / device-detector

The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
http://devicedetector.net
GNU Lesser General Public License v3.0
3.14k stars 482 forks source link

Google Search App?? #7026

Open eduardokraus opened 2 years ago

eduardokraus commented 2 years ago

userAgent => Mozilla/5.0 (iPhone; CPU iPhone OS 14_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/180.0.400278405 Mobile/15E148 Safari/604.1

Return:

client

  • [type] => mobile app
  • [name] => Google Search App
    • [version] => 180.0
sanchezzzhak commented 2 years ago

what is the question?

last result

user_agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/180.0.400278405 Mobile/15E148 Safari/604.1
os:
  name: iOS
  version: "14.7"
  platform: ""
client:
  type: mobile app
  name: Google Search App
  version: 180.0.400278405
device:
  type: smartphone
  brand: Apple
  model: iPhone
os_family: iOS
browser_family: Unknown
eduardokraus commented 2 years ago

Yes.

The detail is that "client" is not Google

sgiehl commented 2 years ago

@eduardokraus And what is incorrect about that? The GSA/ in the user agent actually indicates the Google Search App. Or isn't that correct?

eduardokraus commented 2 years ago

It's not correct.

This is an access via iPhone of a student logged in watching classes in a restricted environment.

sgiehl commented 2 years ago

That might be possible, but which client is it actually using? As mentioned the user agent indicates it is the google (search) app

pbb72 commented 1 year ago

I'd like to chime in here. If I should open a new issue, I can.

The Google Search App is more or less like an add-on to the iOS WebView. It inherits the same functionality as the WebView component. However, the Matomo report hides the information about the WebView version by only reporting the GSA version.

I would prefer these useragents reported as other iOS WebView useragents (I guess that's Mobile Safari?) with the relevant version information. For example "Mobile Safari 16.6". If the GSA information really is vital (I can't really see that it is) it could also be "Mobile Safari (using Google Search App) 16.6".