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.54k stars 2.68k forks source link

->isMobile() returns false for iPhone XS Max #889

Closed cawhite78 closed 2 years ago

cawhite78 commented 2 years ago

Issue description The iPhone XS max returns false for ->isMobile(). This is the one iphone Apple made in 2017 that has the 6.46 screen size.

User-Agent(s) Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1

Suggestions

serbanghita commented 2 years ago

@cawhite78 Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/604.1 returns true for both isMobile and isiPhone(). Are you sure the browser was not in desktop mode?