Hi,

I noticed the following on my mobile phone and seek advice if this is expected.

I'm trying out GetDeviceOrientation() and GetDeviceType() in my mobile app.

On Android, GetDeviceType() will return 'tablet' when i place my phone in landscape. However, for iOS, GetDeviceType() will return 'phone' when it is in landscape.

Shall I place both of my iOS and Android phone to portrait, GetDeviceType() will return 'phone' for both.

Kindly advice which result should be the expected or if anyone having the same issue as well.

Thanks.

Hi,

Looks like the resolution of your Android device his high that is misunderstood has a tablet. Check this post where that is discussed.

Regards,

Marcelo 

Hi Marcelo,

Thanks for the response.

I checked the post and tried to capture the screen width and height from my android device.

I noticed that the screen width and height will be swapped when I rotate my device from portrait to landscape mode.

I tried getting the screen width and height on iOS device using OutSystems Now but noticed that the width and height remains when doing the same rotation. 

Seek advice.

Marcelo Ferreira wrote:

Hi,

Looks like the resolution of your Android device his high that is misunderstood has a tablet. Check this post where that is discussed.

Regards,

Marcelo