Mobile-Detect icon indicating copy to clipboard operation
Mobile-Detect copied to clipboard

isMobile and IsTablet failing on ios devices - using safari

Open olli3 opened this issue 9 months ago • 1 comments

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

olli3 avatar Sep 13 '23 15:09 olli3