device icon indicating copy to clipboard operation
device copied to clipboard

problem with iPad pro

Open the-einstein opened this issue 3 years ago • 6 comments

When making my web page adaptive for iPad, I used isTablet optioin. And I want it to work properly showing that the device I am using is a tablet - iPad. But the plugin sees it as a desktop.

What option to use to get an iPad device?

the-einstein avatar Jul 13 '21 06:07 the-einstein

@the-einstein did you fix it? please can you share it here? thx

fandrianarisataGithub avatar Jan 13 '23 16:01 fandrianarisataGithub

@the-einstein did you fix it? please can you share it here? thx

I have the same issue but I noticed that the iPad Pro registers as a desktop device and the OS as MacOS and not iOS. In other words the iPad Pro is a desktop wannabe LOL

You might be able to solve this by creating a custom flag.

skoulix avatar Feb 08 '23 08:02 skoulix

Sorry for not updating my issue. Have not worked on the project for a while. But in that moment I tried many ways to fix this issue, but ended up using not very proper way by finding the screen size from browser itself (using window.screen.width;) and developing the page from that size.

the-einstein avatar Feb 08 '23 09:02 the-einstein

I don't use this module (yet), we have our own solution in place already. In general, iPad Pros are a pain. They use the same user agent as non-pros. One has the resolution/dimensions of a tablet, the other a desktop so no matter what your solution you'll always have server-side detection thinking it's a tablet and client-side detection thinking it's a desktop (if it's based on resolution).. This is what we do. Yes, Ipad Pros will re-draw their experience the first time they hit the site, but from then on it's seamless.

The only way this will get solved is either a) Apple starts sending different user agents for Pros (unlikely) or b) Safari starts supporting client-hints.

hecktarzuli avatar Apr 20 '23 13:04 hecktarzuli

I have the same issue

PingZi818 avatar Jun 16 '23 08:06 PingZi818