3rd-Eden / useragent

Useragent parser for Node.js, ported from browserscope.org
MIT License
897 stars 137 forks source link

Won't parse iOS from CFNetwork user-agent string #96

Closed ronkorving closed 7 years ago

ronkorving commented 7 years ago

User agent: gcw/36 CFNetwork/711.3.18 Darwin/14.0.0

Parse output:

> useragent.parse('gcw/36 CFNetwork/711.3.18 Darwin/14.0.0');
Agent {
  family: 'CFNetwork',
  major: '711',
  minor: '3',
  patch: '18',
  source: 'gcw/36 CFNetwork/711.3.18 Darwin/14.0.0' }

According to https://user-agents.me/operating-system/apple/ios-8 (and my device) this should be recognized as iOS 8.3.

ronkorving commented 7 years ago

Nevermind, it works! I just didn't quite understand how to extract the data from the agent (since the os property for example doesn't show up in the REPL).

krin-san commented 6 years ago

@ronkorving, do you have an offline copy of CFNetwork version list? The website you linked seems corrupted - redirects on the main page.

ronkorving commented 6 years ago

This was a year ago. I'm sorry to say I don't :(