Disable rotation for phones

2 posts, 0 answers
  1. Giancarlo
    Giancarlo avatar
    9 posts
    Member since:
    Jul 2015

    Posted 13 Nov 2015 Link to this post

    Is there any way to disable rotation for phones only? 
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 18 Nov 2015 Link to this post

    Hi Giancarlo,

    You can benefit from cordova device plugin to get more information for the specific device. As an example, please refer to the Device Information sample.

    As to disabling the rotation, you can consider using the Screen Orientation plugin. It allows you to dynamically lock or unlock orientation. To add it to your project, you can perform the following steps:
    Right click on your project -> Manage packages -> Plugins Marketplace -> Find the plugin and click install.


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

Back to Top