Git Product home page Git Product logo

Comments (13)

sebastien-mignot avatar sebastien-mignot commented on July 30, 2024

This would be really good to fix, more and more of those tablets are bought (already some clients of us complained).
You can resolve the 2 problems in this issue separatly thought :
First this needs to be recognized as a tablet (isTable() true).
Then the desktop mode can be fixed whenever the device will not send exactly the same UA in desktop mode as in default mode.

from mobile-detect.

StevenMapes avatar StevenMapes commented on July 30, 2024

You can add the UA to the tablet list if you want it to come up as a tablet. I've done that with some Android devices which were not matching.

The problem bjankord has reported though is that the UA does not change. bjankord, do you have a copy of all of the headers sent by the device in different modes? Is there any difference between them? If there is not then this would require a client-side solution, assuming the viewport or some other client detectable setting is changed.

from mobile-detect.

httpete avatar httpete commented on July 30, 2024

I am not a regex god, but I got this by adding this to the $tabletDevices.

    'SurfaceTablet'     => 'Mozilla.*MSIE.*; Touch',

from mobile-detect.

httpete avatar httpete commented on July 30, 2024

improvement here, discerns a tablet from windows 8 phone , which works ok. Phone comes up with Windows 8 Phone, Tablet does Windows NT

    'SurfaceTablet'     => 'Mozilla.*MSIE.*; Windows NT.*; Touch',

from mobile-detect.

serbanghita avatar serbanghita commented on July 30, 2024

@httpete I have to test this against https://github.com/serbanghita/Mobile-Detect/blob/master/manual_tests/mobilePerVendor_useragents.inc.php

Do you have any tablet with Windows Mobile? Thanks a lot!

from mobile-detect.

httpete avatar httpete commented on July 30, 2024

Hi Serban,

Yes I have an windows Surfact RT tablet, I posted to the wiki the regex I am using that I patch in and it does work, distinguishing between windows mobile phone and rt tablet correctly.

I am also working with our management team to get you the pledgie funds you need for your V3.0 project. I want to thank you personally for your efforts on this project. TimeTrade relies on your code for our responsive web apps, and we eliminated the need for bigger more cumbersome systems.

Pete Smith

On Mar 7, 2013, at 8:41 AM, Serban Ghita <[email protected]mailto:[email protected]> wrote:

@httpetehttps://github.com/httpete I have to test this against https://github.com/serbanghita/Mobile-Detect/blob/master/manual_tests/mobilePerVendor_useragents.inc.php

Do you have any tablet with Windows Mobile? Thanks a lot!


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-14560883.

from mobile-detect.

serbanghita avatar serbanghita commented on July 30, 2024

@httpete Great, if this is critical for you I'll test the regex a.s.a.p. To be sure I need to research the differences between HTTP headers of phones running http://en.wikipedia.org/wiki/Windows_Phone_8 and tablets running http://en.wikipedia.org/wiki/Windows_RT

from mobile-detect.

lespinosa avatar lespinosa commented on July 30, 2024

Hi Serbanghita!

We have some update for this issue?

Thanks!

from mobile-detect.

cripsta187 avatar cripsta187 commented on July 30, 2024

I would also appreciate an update because more and more users have a surface tablet.
Any hot fix solution to this problem?

Regards, Crip

from mobile-detect.

httpete avatar httpete commented on July 30, 2024

To me, we need to break up the devices by screen res. Mobile and tablet are really arbitrary groupings. I think most break it up by screen size. I would love this API to say screenSize Less than 768 wide

-- Sent from my HP TouchPad


On Mar 20, 2013 4:46 PM, cripsta187 [email protected] wrote:

I would also appreciate an update because more and more users have a surface tablet.
Any hot fix solution to this problem?

Regards, Crip


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-15202314.

from mobile-detect.

serbanghita avatar serbanghita commented on July 30, 2024

@httpete working on that API.

Everybody check isSurfaceTablet(). Please also test: isWindowsMobileOS and isWindowsPhoneOS - I need confirmations for these until I finish the automated tests.

from mobile-detect.

lespinosa avatar lespinosa commented on July 30, 2024

Thanks! Serban

from mobile-detect.

seancodev avatar seancodev commented on July 30, 2024

Hi all,

Change Windows Phone OS to:
'WindowsPhoneOS' => 'Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows Phone 8.0; Trident/.; IEMobile/.; ARM;', (note /.* after IEMobile and Trident)

Surface Tablet to:
'SurfaceTablet' => 'Windows NT 6.[23]; ARM;.(Tablet|ARMBJS)|Mozilla.MSIE.; Windows NT.; Touch|Windows NT 6.[23]; ARM; Trident/.*; Touch;',

Good to go.

Cheers,
Sean

from mobile-detect.

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.