Lock Landscape for Phone, but not in Tablet

2 posts, 0 answers
  1. Sean
    Sean avatar
    18 posts
    Member since:
    Nov 2010

    Posted 25 Jun 2015 Link to this post

    Have an application that is for both phone and tablet.  Would like to lock the orientation on the phone to landscape only, but on the tablet view have both landscape and portrait.   Anyone point me in the right direction?


  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 30 Jun 2015 Link to this post

    Hello Sean,

    I believe your requirement can be implemented through the APIs of 2 plugins:
    • Cordova Device - use this API to check the device model or name to check if the app is running on a tablet
    • Screen Orientation - use this API to lock or unlock the device orientation accordingly.
    Let me know if that helps.

    Tina Stancheva

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top