How to detect tablet or phone

3 posts, 0 answers
  1. fenix2222
    fenix2222 avatar
    13 posts
    Member since:
    Sep 2008

    Posted 17 Mar 2013 Link to this post

    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. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 18 Mar 2013 Link to this post

    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
  3. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 18 Mar 2013 Link to this post

    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.
Back to Top