Closed l3ender closed 4 years ago
You should be able to use <config-file>
blocks to specify custom orientation settings and Cordova will pick up and apply those. Be sure not to specify <preference name="Orientation" /> in your
config.xmlas this will take precedence. If you encounter issues, you can use this plugin to apply a
Did some more research, and editing array
plist entries (like UISupportedInterfaceOrientations
) is not currently supported by Cordova. See https://github.com/apache/cordova-ios/issues/613.
I'm having trouble determining if this plugin is needed for configuring
UISupportedInterfaceOrientations
andUISupportedInterfaceOrientations~ipad
and am wondering if someone could provide guidance.It seems like the customization for orientations should be supported with edit-config or config-file options in
config.xml
file, but I haven't had any luck. Additionally, we have a custom Cordova plugin where I've tried the same and I am not seeing my customizations reflected in the final plist file.I've tried the following in both
config.xml
and our custom plugin'splugin.xml
:and
So I wanted to see if this plugin is required for the above configuration, or if can be successfully accomplished with core/base Cordova configuration.
Many thanks!