uap-java icon indicating copy to clipboard operation
uap-java copied to clipboard

Can Java version be updated to match the fields available in NodeJS version?

Open milespoindexter opened this issue 9 years ago • 2 comments

Can this get all of the fields that the NodeJS version does? Do they both use the same regexes.yaml? If so, how hard would it be to update it to get the same data results?

For instance, some missing fields are: ua.browser.version (just combine the major and minor, maybe patch results?) ua.device.type (i.e. desktop, mobile, tablet, etc) (basically device category) ua.device.model (i.e. iPhone, etc.) (for this I'm currently using device.family) ua.os.version (just combine the major and minor, maybe patch results?) ua.device.vendor (i.e. Apple, Microsoft, etc) ua.cpu.architecture (i.e. AMD64, etc.)

milespoindexter avatar Dec 09 '15 16:12 milespoindexter

Hi, sorry, I have better information now. It turns out the NodeJS module I was referring to is NOT under the ua-parser umbrella and uses its own internal regex, which seems to parse the UA string more effectively: https://github.com/faisalman/ua-parser-js. Going to see if I can port it to Java. But worth a look to incorporate their regex into your regexes.yaml . . .

milespoindexter avatar Dec 09 '15 17:12 milespoindexter

I also need the ua.device.type

dularion avatar Feb 02 '17 13:02 dularion