Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

isMobile and IsTablet failing on ios devices - using safari #939

Open
olli3 opened this issue Sep 13, 2023 · 1 comment
Open

isMobile and IsTablet failing on ios devices - using safari #939

olli3 opened this issue Sep 13, 2023 · 1 comment

Comments

@olli3
Copy link

olli3 commented Sep 13, 2023

Issue description
IOS devices using Safari - isTablet and isMobile both return false.
Latest version (3.7.4)
Same devices using Chrome work as expected.

same on IOS 16,15,14

ipad pro 12.9 and ipad10 are good example devices

User-Agent(s)

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15

Device fix (obviously cant be done on all user devices everytime)

I opened Settings -> Safari -> Request Desktop Website -> All websites. That option is enabled by default. I disabled it and the proper User Agent is now displayed.

Suggestions

@drakanor
Copy link

drakanor commented Nov 8, 2023

I can confirm that the iPad is not recognized at all through Safari.

Mobile-Detect:
4.8.04

PHP:
8.1

iPad OS:
16.7.2

HTTP_USER_AGENT:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15"

Results:
[2023-11-08 12:02:05] local.INFO: isIOS: false
[2023-11-08 12:02:05] local.INFO: isiPad: false
[2023-11-08 12:02:05] local.INFO: isiPadOS: false

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

No branches or pull requests

2 participants