[
https://issues.apache.org/jira/browse/CB-9264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15196807#comment-15196807
]
Shazron Abdullah commented on CB-9264:
--------------------------------------
This is causing problems in CB-10694 as well. Android and iOS have Platform API
implementations now, so the config.xml merging implementation resides in the
platform themselves.
In iOS, it is doing a simple xml merge:
https://github.com/apache/cordova-ios/blob/036765d326b24c14a3cae16a5c56646dae86d7c4/bin/templates/scripts/cordova/lib/prepare.js#L85
... in cordova-lib/xml-helpers.js. We need to do a post-processing step where
we remove duplicate entries.
> Duplicate entries in config.xml
> -------------------------------
>
> Key: CB-9264
> URL: https://issues.apache.org/jira/browse/CB-9264
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, CordovaCommon, iOS
> Affects Versions: 5.0.0, 5.1.1
> Environment: iOS, Android
> Reporter: Jackson Kearl
> Labels: cordova-ios-4.1.1, triaged
>
> After adding an
> {code:xml}
> <preference name="KeyboardDisplayRequiersUserAction" value="false"/>`
> {code}
> entry to app/config.xml, cordova build will create the
> app/platforms/ios/AppName/config.xml file with
> {code:xml}
> <preference name="KeyboardDisplayRequiersUserAction" value="true"/>
> ...
> <preference name="KeyboardDisplayRequiersUserAction" value="false"/>
> {code}
> The second assignment has no affect, causing the app to behave as if only the
> true assignment had ever occurred. Upon manually setting the first value to
> false, the app executes properly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]