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

iPhone 6s Plus detected as Macintosh #182

Open
andrewlim7 opened this issue Jan 18, 2021 · 1 comment
Open

iPhone 6s Plus detected as Macintosh #182

andrewlim7 opened this issue Jan 18, 2021 · 1 comment

Comments

@andrewlim7
Copy link

Physical iPhone 6s Plus detected as Macintosh and isDesktop = 1 whereas isMobile = 0. Any workaround to solve it?
Model iPhone SE, iPhone 8 & 8 Plus via Safari browser's mobile responsive design detected as iPhone and isMobile = 1.

@wanglpqdu
Copy link

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.
Mozilla/5.0 (iPad; CPU OS 13_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1
IMO it should be disabled by default and if a user enables it a modal window should be displaying indicanting not all web sites will be supported properly. Or maybe you may consider to add the iPad word to the first user agent to allow us to detect if it is an ipad emulating safari desktop or enable mouse event emulation, because I think when it is released several websites will fail.

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

3 participants
@wanglpqdu @andrewlim7 and others