barisaydinoglu / Detectizr

A Modernizr extension to detect device, device model, screen size, operating system, and browser details
http://barisaydinoglu.github.io/Detectizr
MIT License
413 stars 77 forks source link

Chrome on iOS detecting as Safari #17

Closed Soviut closed 10 years ago

Soviut commented 10 years ago

I assume this is because it's using a WebView but it would be really nice if detectizr could tell the difference.

{
  "device":{
    "browser":"safari",
    "browserEngine":"webkit",
    "browserPlugins":[],
    "browserVersion":"",
    "model":"iphone",
    "orientation":"",
    "os":"ios",
    "osVersion":"7",
    "osVersionFull":"7.0.4",
    "type":"mobile",
    "userAgent":"mozilla/5.0 (iphone; cpu iphone os 7_0_4 like mac os x) applewebkit/537.51.1 (khtml, like gecko) crios/31.0.1650.18 mobile/11b554a safari/8536.25 (0e49bb06-60c1-4a5e-ac79-934f8a6a62b7)"
  }
}

Here's a Stack Overflow answer that explains the differences. It looks like the existence of CriOS in the userAgent

http://stackoverflow.com/questions/13807810/ios-chrome-detection