cbschuld/Browser.php

iPad returns false for isMobile?

Opened this issue · 3 comments

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

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

Then where is the limit between isMobile and isTablet ?

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