Open lbernardxmp opened 6 years ago
I have the same problem. Please note in my config.yml is:
mobile_detect:
redirect:
detect_tablet_as_mobile: false
Dont know if that also has any impact on twig functions or is strictly redirect-based...
I tried same approach as @StanislavUngr with no luck.
Emulating iPad (using Chrome device emulation) gives matches on both is_phone() and is_tablet().
MobileDetect v1.1.1, Symfony 4.4.11
$this->detector->isMobile()
raise true on tablet Test on Ipad2/Safari, Samsung/Firefox and Huawei FirefoxUse with Symfony 3.4.9, MobileDetect V1.1