Jump to content

UniPlatform gives wrong result on iPad


likemike

Recommended Posts

Hello!

I use UniPlatform to get the info, which OS is used.
 

uPlat:=UniApplication.UniPlatform;

IF (upAndroid IN uPlat) THEN OS:='Android'
ELSE IF (upiOS IN uPlat) THEN OS:='iOS'
ELSE IF (upDesktop IN uPlat) THEN OS:='Windows';

It works on most devices, but on an iPad (APPLE MTXN2FD/A iPad Pro -2018)  I get:

Quote

OS = Windows

Anyone else has the same problem?

Regards

Mike

Link to comment
Share on other sites

13 hours ago, likemike said:

Hello!

I use UniPlatform to get the info, which OS is used.
 



uPlat:=UniApplication.UniPlatform;

IF (upAndroid IN uPlat) THEN OS:='Android'
ELSE IF (upiOS IN uPlat) THEN OS:='iOS'
ELSE IF (upDesktop IN uPlat) THEN OS:='Windows';

It works on most devices, but on an iPad (APPLE MTXN2FD/A iPad Pro -2018)  I get:

Anyone else has the same problem?

Regards

Mike

Same problem on my IPad (5.Gen) with ios 14.4.2

UniApplication.UniPlatform returns upDesktop.

Link to comment
Share on other sites

  • 3 weeks later...

Hello!

I've tested a lot of browsers and devices.

Here are the cases, where Uniplatform shows wrong informations about the used device:

- Apple iPad + Safari returns "upDesktop"
- Android tablets (different devices) + Samsung Internet Browser (v 14.0.1.62) return "upDesktop"
- Android tablets (different devices) + Firefox (v 88.1.3) return "upPhone" (instead of upTablet)

My app differs between the device models, so it's very important for me to get the correct return value. Is there any progress?

Regards

Mike

Link to comment
Share on other sites

×
×
  • Create New...