bowser-js / bowser

a browser detector
Other
5.49k stars 487 forks source link

Wrong detecting version of UC Browser from mobile devices #255

Open RUVATA opened 6 years ago

RUVATA commented 6 years ago

window.navigator.userAgent of the browser is: NokiaX2-02/2.0 (11.79) Profile/MIDP-2.1 Configuration/CLDC-1.1 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2) UCBrowser12.4.0.159/70/352 And it's detected like: UC Browser version 6.0 However, the real version of UC Browser is: 12.4.0.159

window.navigator.userAgent of the browser is: Mozilla/5.0 (Linux; U; Android 4.4.4; en-US; XT1022 Build/KXC21.5-40) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/10.7.0.636 U3/0.8.0 Mobile Safari/534.30 And it's detected like: UC Browser version 4.0 However, the real version of UC Browser is: 10.7.0.636

RUVATA commented 6 years ago

window.navigator.userAgent of the browser is: NokiaX2-02/2.0 (11.79) Profile/MIDP-2.1 Configuration/CLDC-1.1 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2) UCBrowser8.4.0.159/70/352 And it's detected like: UC Browser not detected However, the real version of UC Browser is: 8.4.0.159

RUVATA commented 6 years ago

the above User-Agents is preseten in Google Chrome DevTools -> Network conditions in drop-down list of availible to emulate

lancedikson commented 6 years ago

Hi, @RUVATA. Thanks for your report. I'll check this out and fix soon :)

cagline commented 4 years ago

Mozilla/5.0 (Linux; U; Android 10; en-US; SM-A515F Build/QP1A.190711.020) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.108 UCBrowser/13.3.0.1302 Mobile Safari/537.36 It's consider a version as Version/4.0 not UCBrowser/13.3.0.1302


{
  "os": {
    "name": "Android",
    "version": 10
  },
  "engine": {
    "name": "Blink"
  },
  "browser": {
    "name": "UC Browser",
    "version": 4
  },
  "platform": {
    "type": "mobile"
  }
}

@lancedikson