| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
#[Informational Post]
#Answer
For IOS Platform :-
In kony.os.deviceInfo() will return as iPhone or iPad.
For Android Platform:-
In kony.os.deviceInfo().name you will get the device name like android, after that based on the device width and height, you can identify the mobile or tablet for android platform.
Here are the details.
kony.os.deviceInfo().name
kony.os.deviceInfo().deviceWidth
kony.os.deviceInfo().deviceHeight
By general as per the market standards, you need to set the minimum width and height for all mobile and tablet channels.
For example
Here's how other smallest width values correspond to typical screen sizes:
320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).
480dp: a large phone screen ~5" (480x800 mdpi).
600dp: a 7” tablet (600x1024 mdpi).
720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc).
By default values are
* Tablet (portrait and landscape) ----------- */
min-device-width : 768px
max-device-width : 1024px
/* Desktops and laptops ----------- */
min-width : 1224px
For more info please go through the below link:-
https://developer.android.com/training/multiscreen/screensizes
https://stackoverflow.com/questions/40157799/correctly-detect-android-device-type/40219432
Thanks,