node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


Cordova ScreenOrientationLandscape plugin


auto lock screen orientation landscape. (fix xdk not locking ios orientation issue, for example: not restore landscape after taking camera picture)

[ios] [cordova cli] [xdk] [phonegap build service]

This is open source cordova plugin.

You can see Cordova Plugins in one page:

Change log

Install plugin

Cordova cli Command-Line Interface - npm install -g cordova@6.0.0

cordova plugin add cordova-plugin-screenorientation-landscape

Xdk - Download XDK - XDK PORJECTS - [specific project] - CORDOVA HYBRID MOBILE APP SETTINGS - Plugin Management - Add Plugins to this Project - Third Party Plugins -

Plugin Source: Cordova plugin registry
Plugin ID: cordova-plugin-screenorientation-landscape

Cocoon - Create project - [specific project] - Setting - Plugins - Custom - Git Url: - INSTALL - Save

Phonegap build service (config.xml) - Apps - [specific project] - Update code - Zip file including config.xml

<gap:plugin name="cordova-plugin-screenorientation-landscape" source="npm" />


Download construct2 plugin:
Now all the native plugins are installed automatically: # Server setting #


no api, just add this plugin.



Useful links

Cordova Plugins