serbanghita / Mobile-Detect

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.
http://mobiledetect.net
MIT License
10.55k stars 2.68k forks source link

isTablet in iPad is returning false #860

Closed viracoding closed 3 years ago

viracoding commented 3 years ago

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

isTablet in iPad is returning false

darapa1 commented 3 years ago

@viracoding This is normal behavior, because your mentioned UA string is from Desktop Mode. This is default configuration for Safari using iPadOS.

You can "Request Mobile Website" at the "aA" Menu left of our URL. This will result in isTablet() = true.

Works as designed from Apple.