isMobile & isTablet both return true
Open
- Dominant language
- PHP
- Stars
- 4.9k
- Forks
- 545
- PR merge metrics
- No merged PRs in 30d
Description
```
$agent->isMobile();
$agent->isTablet();
```
When we have tested this we have found that if the device user agent is iPad then when you call isMobile it is returning true and when you call isTablet is also returns true.
So when we do
```
if ($agent->isMobile()) {
return 'Mobile';
} elseif ($agent->isTablet()) {
return 'Tablet';
} elseif ($agent->isDesktop()) {
return 'Desktop';
}
```
if it's, for example, iPad or iPhone it will always return 'Mobile'.
Is this expected behaviour?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.