Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x-ucbrowser-ua Cause information error #139

Open
zerofront opened this issue Sep 23, 2020 · 0 comments
Open

x-ucbrowser-ua Cause information error #139

zerofront opened this issue Sep 23, 2020 · 0 comments

Comments

@zerofront
Copy link

In Iphone UC Browser

x-ucbrowser-ua

dv(iPh10,3);pr(UCBrowser/13.1.2.1378);ov(13_7);ss(375x812);bt(UC);pm(0);bv(0);nm(0);im(0);nt(2);

user-agent

Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X; zh-CN) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/17H35 UCBrowser/13.1.2.1378 Mobile AliApp(TUnionSDK/0.1.20.3)

use x-ucbrowser-ua causes useragent check error, it return

{ isYaBrowser: false,
  isAuthoritative: true,
  isMobile: false,
  isTablet: false,
  isiPad: false,
  isiPod: false,
  isiPhone: false,
  isAndroid: false,
  isBlackberry: false,
  isOpera: false,
  isIE: false,
  isEdge: false,
  isIECompatibilityMode: false,
  isSafari: false,
  isFirefox: false,
  isWebkit: false,
  isChrome: false,
  isKonqueror: false,
  isOmniWeb: false,
  isSeaMonkey: false,
  isFlock: false,
  isAmaya: false,
  isPhantomJS: false,
  isEpiphany: false,
  isDesktop: false,
  isWindows: false,
  isLinux: false,
  isLinux64: false,
  isMac: false,
  isChromeOS: false,
  isBada: false,
  isSamsung: false,
  isRaspberry: false,
  isBot: false,
  isCurl: false,
  isAndroidTablet: false,
  isWinJs: false,
  isKindleFire: false,
  isSilk: false,
  isCaptive: false,
  isSmartTV: false,
  isUC: true,
  isFacebook: false,
  isAlamoFire: false,
  isElectron: false,
  silkAccelerated: false,
  browser: 'UCBrowser',
  version: '13.1.2.1378',
  os: 'unknown',
  platform: 'unknown',
  geoIp: {},
  source:  'dv(iPh10,3);pr(UCBrowser/13.1.2.1378);ov(13_7);ss(375x812);bt(UC);pm(0);bv(0);nm(0);im(0);nt(2);' 
}

Only isUC is correct, others such as isMobile are wrong, and platform information / os becomes unknown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@zerofront and others