This is a migrated thread and some comments may be shown as answers.

How to detect tablet or phone

2 Answers 182 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
fenix2222
Top achievements
Rank 2
fenix2222 asked on 18 Mar 2013, 12:11 AM
Hi,

I need to have fairly different views for my mobile app depending on whether user is accessing it view phone or a tablet device. How can I do it in Icenium. I need to detect, for example, whether user is using iPad and if he is, I will then use different home page, otherwise index.html will be rendered for mobile phones.

2 Answers, 1 is accepted

Sort by
0
Jan-Dirk
Top achievements
Rank 1
answered on 18 Mar 2013, 10:19 AM
Before Cordova 2.3 it was device.name, since 2.3 it is device.model

See:
- http://docs.phonegap.com/en/2.5.0/cordova_device_device.md.html#device.name
- http://docs.phonegap.com/en/2.5.0/cordova_device_device.model.md.html#device.model
0
Steve
Telerik team
answered on 18 Mar 2013, 12:24 PM
Hi,

If you're using KendoUI Mobile, it provides both tablet and phone specific UI widgets. Developers can leverage these widgets to create a perfectly tailored UI for both form factors, and then apply the following universal technique to easily deploy the results.

Greetings,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
Tags
General Discussion
Asked by
fenix2222
Top achievements
Rank 2
Answers by
Jan-Dirk
Top achievements
Rank 1
Steve
Telerik team
Share this question
or