Comments (13)
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.
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.
I am not a regex god, but I got this by adding this to the $tabletDevices.
'SurfaceTablet' => 'Mozilla.*MSIE.*; Touch',
from mobile-detect.
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.
@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.
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.
@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.
Hi Serbanghita!
We have some update for this issue?
Thanks!
from mobile-detect.
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.
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.
@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.
Thanks! Serban
from mobile-detect.
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)
- Safari on iPad: completely incorrect reports HOT 1
- Trying to get in touch regarding a security issue HOT 2
- MD v 3.74 - PHP Parse error: syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) in Mobile_Detect.php on line 245 HOT 1
- How to check Desktop site setting On OR Off in mobile browser
- isMobile doesn't cache matches HOT 2
- isEdge() return false on Edge Browser
- 4.8.x HOT 4
- isMobile and IsTablet failing on ios devices - using safari HOT 1
- Port functionality from `jenssegers/agent` HOT 11
- Restore implicit use of `HTTP_USER_AGENT` in 4.8.x branch HOT 3
- Chrome's user agent reduction results in no longer detecting Android tablets as a tablet device HOT 1
- Getting a Parse error on the latest version (4.8.03) on PHP 7.1.33 HOT 4
- Google SERP links open as the mobile version HOT 5
- [bug] No user-agent has been set HOT 18
- [bug] breaking change pushed as patch HOT 3
- Need advice on `No valid user-agent has been set` PHP Fatal error HOT 4
- Tablet IOS detection HOT 1
- I dont understand HOT 8
- php 8.4 - implicit nulls are deprecated HOT 1
- Windows Wechat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-detect.