suncat2000 / MobileDetectBundle

Symfony 2/3/4 bundle for detect mobile devices, manage mobile view and redirect to the mobile and tablet version.
397 stars 153 forks source link

Tablet is detected as mobile #128

Open lbernardxmp opened 6 years ago

lbernardxmp commented 6 years ago

$this->detector->isMobile() raise true on tablet Test on Ipad2/Safari, Samsung/Firefox and Huawei Firefox

Use with Symfony 3.4.9, MobileDetect V1.1

StanislavUngr commented 5 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...

nagyalex commented 4 years ago

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