I am developing a cordova app for both Ipad and Iphone and i need the iphone app to support only for portrait and ipad app to support only for landscape. Right now i have se
Unfortunately I could not get this to work with edit-config and Cordova 7, but I could get this working with the cordova-custom-config plugin.
cordova plugin add cordova-custom-config --save
Then add the following to config.xml. Note the custom-config-file elements for version 5 of this plugin instead of the config-file elements, to prevent conflicting with cordova parsing the config-file elements.
UIInterfaceOrientationPortrait
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
...