Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPad returns false for isMobile? #9

Open
Tiestarian opened this issue Sep 2, 2013 · 3 comments
Open

iPad returns false for isMobile? #9

Tiestarian opened this issue Sep 2, 2013 · 3 comments

Comments

@Tiestarian
Copy link

Is the "isMobile()" call supposed to return false on the iPad?

That's what I'm getting when trying to use it, but I wasn't sure if this was intended or a bug?

The user agent is:
Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3

Thanks

@mavrick
Copy link
Collaborator

mavrick commented Sep 3, 2013

there should be isTablet() for tablet based devices now.

@romainneutron
Copy link
Collaborator

Then where is the limit between isMobile and isTablet ?

@PaykomanVll
Copy link

Hmm, yes that must be specifical when i will chek the user is on with Desktop, Tablet or an Phone...

When work isTablet() or isMobile() not correct is that bad for an if statement who i will ckeck it.

define( 'deviceType', ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'desktop') );

Hmm and now? I need this function by 100% o.O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants