Skip to content
New issue

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

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

Already on GitHub? # to your account

Wrong mobile detection #210

Open
anton-kulyk opened this issue Nov 13, 2023 · 4 comments
Open

Wrong mobile detection #210

anton-kulyk opened this issue Nov 13, 2023 · 4 comments

Comments

@anton-kulyk
Copy link

anton-kulyk commented Nov 13, 2023

Runs v2.6.4 on MacBook Pro (Chrome) - UserAgent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 the methods agent->isPhone() and agent->isMobile() returns true
while agent->isDesktop() returns false.

image
image

@o150209001
Copy link

me too

@sm9sh
Copy link

sm9sh commented Nov 15, 2023

"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
detects as mobile but it's desktop

UPD:
It was decided when updated mobiledetect lib:
composer req mobiledetect/mobiledetectlib:v2.8.45

@pedrolopes101
Copy link

I'm having the same problem

@AzizSaleh
Copy link

AzizSaleh commented Nov 29, 2023

It was broken by this update to MobileDetect:

https://github.com/serbanghita/Mobile-Detect/pull/936/files

It was also fixed (reverted), you just need to remove composer lock file and run composer install again:

#207 (comment)

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

No branches or pull requests

6 participants
@AzizSaleh @sm9sh @o150209001 @anton-kulyk @pedrolopes101 and others