jenssegers / agent

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

The ajent package cannot correctly distinguish between iPad and desktop #205

Open msd0s opened 1 year ago

msd0s commented 1 year ago

hi. In the ajent package, the iPad is recognized as a desktop environment and the two cannot be separated from each other.

francislavoie commented 1 year ago

FYI, it's not possible to differentiate iPad from desktop Safari purely from the user agent, they're reported the same. You need to use other mechanisms like some client-side JS checking whether the browser has navigator.maxTouchPoints (i.e. has touch-screen support, which macOS does not, for now).