GithubHelp home page GithubHelp logo

isMobileDevice and IE9 about ua-parser HOT 5 CLOSED

tobie avatar tobie commented on May 28, 2024
isMobileDevice and IE9

from ua-parser.

Comments (5)

dmolsen avatar dmolsen commented on May 28, 2024

I have a feeling there's something else in the UA that's setting off that check. Can you hit http://uaparser.dmolsen.com for me and copy the results into a comment for this issue, please? Thanks.

from ua-parser.

matteoantoci avatar matteoantoci commented on May 28, 2024

Sure, I used IE 9.0.8112.16421 64-bit and IE8 mode:

isMobileDevice: 1
isMobile:
isSpider:
isTablet: 1
isComputer:
major: 8
minor: 0
browser: IE
version: 8.0
browserFull: IE 8.0
isUIWebview:
osMajor:
osMinor:
os: Windows 7
osVersion:
osFull: Windows 7
full: IE 8.0/Windows 7
uaOriginal: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; NP06; Tablet PC 2.0)

from ua-parser.

dmolsen avatar dmolsen commented on May 28, 2024

Stupid question... Are you running IE9 on a tablet pc?

The "Tablet PC 2.0" string is setting off one of my checks that's really designed for Android tablets. That said, Windows seems to think that it's running on a tablet and if that's the case then having isMobileDevice set to true is actually appropriate. Interestingly enough there seems to be a case for knowing this detail. I'm curious how accurate this bit of data is though.

If you could also hit this with IE 9 mode & tell me the results I'd appreciate it.

from ua-parser.

matteoantoci avatar matteoantoci commented on May 28, 2024

I'm using an asus U44S, don't know if it could help..
Anyway, here you are:

isMobileDevice:
isMobile:
isSpider:
isTablet:
isComputer: 1
major: 9
minor: 0
browser: IE
version: 9.0
browserFull: IE 9.0
isUIWebview:
osMajor:
osMinor:
os: Windows 7
osVersion:
osFull: Windows 7
full: IE 9.0/Windows 7
uaOriginal: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; NP06)

from ua-parser.

dmolsen avatar dmolsen commented on May 28, 2024

For now I'm leaving the php lib unchanged. It's a bad match but I'm going to err on the side of most versions of Windows that are Tablet PC capable actually being tablets. It's a toss-up I think. The tablet attribute might had to drop completely anyway. Sorry.

from ua-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.