jenssegers / agent

👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect
https://jenssegers.com
MIT License
4.56k stars 476 forks source link

iPhone 6s Plus detected as Macintosh #182

Open andrewlim7 opened 3 years ago

andrewlim7 commented 3 years ago

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 commented 3 years ago

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.