[
https://issues.apache.org/jira/browse/CB-6462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14221413#comment-14221413
]
Shazron Abdullah commented on CB-6462:
--------------------------------------
Yup, the docs are incorrect -- in the "Issue Links" section of this issue, it
is filed as CB-6182.
The way project config.xml works, the CLI just copies the tag into the
platform's config.xml. It does *not* transform the Info.plist values.
So, as you can see there can be two different values. The iOS platform
currently reads from Info.plist. If we change it to support the config.xml
value --- you can see how this can be confusing, if the user decides to tweak
the project directly.
If the CLI could transform the Info.plist on "cordova prepare" this would not
be an issue, but it doesn't.
This could be added as a before-* hook, but users would have to add this hook
explicitly.
> Support "Orientation" global preference
> ---------------------------------------
>
> Key: CB-6462
> URL: https://issues.apache.org/jira/browse/CB-6462
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
>
> See CB-6182
> For Orientation, this requires a change in the Info.plist but we could read
> the preference, and override the reading of the values here:
> https://github.com/apache/cordova-ios/blob/217b3a52af828b0cc88111bcda7f7b862ad1549d/CordovaLib/Classes/CDVViewController.m#L78
> ... however it might be too confusing for the user, if there are two places
> for the values to be set – but it could just be a documentation issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]