bowser
bowser copied to clipboard
Chrome OS reports emtpy platform with .getResult()
The user agent for an Acer Chromebook is
Mozilla/5.0 (X11; CrOS x86_64 12239.67.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.102 Safari/537.36
When run with new Bowser(window.navigator.userAgent).getResult()
the result has an empty object for platform.
I can see that in parser-platforms.js
there is no test for Chrome OS anything. I think it would be great if there could be a default test in to make it Desktop, or in the case of the few Chrome OS tablets (if you can get their user agent string) put a test in for that for tablet. Thanks!
Hi, @ericcirone. Thanks for your report.
The problem is that I have no idea how desktop and tablet ChromeOS differ exactly. I think it would be nice to have more reliable examples (test cases) of UA strings with 100% understanding which is a tablet or a desktop.
Could you help to find those if you're interested in this feature? :)
Well I got two UA Strings,
Acer Chromebook:
Mozilla/5.0 (X11; CrOS x86_64 12239.67.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.102 Safari/537.36
Pixel Slate off of Reddit:
Mozilla/5.0 (X11; CrOS x86_64 12371.46.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.63 Safari/537.36
Not much of a difference. I guess you could do a capabilities detection as well.
Same issue here. But UA is not very informative.
Mozilla/5.0 (X11; CrOS x86_64 12871.91.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.127 Safari/537.36
@ericcirone Did you find a workaround?
Same issue here. But UA is not very informative.
Mozilla/5.0 (X11; CrOS x86_64 12871.91.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.127 Safari/537.36
@ericcirone Did you find a workaround?
@kasperkamperman I have not yet. 😞
Same issue here, Dell Chromebook 3120 XDGJH (Laptop):
User-Agent: Mozilla/5.0 (X11; CrOS x86_64 13020.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36