[
https://issues.apache.org/jira/browse/CB-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Filip Maj reopened CB-2237:
---------------------------
Default prefs get clobbered right now though.
Solution:
Have each platform parser store an object of default preferences.
- these always get written out...
- ... unless the user specifically overrides them in {{www/config.xml}}
> CLI does not set platform specific preferences in iOS from project level
> config.xml
> -----------------------------------------------------------------------------------
>
> Key: CB-2237
> URL: https://issues.apache.org/jira/browse/CB-2237
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.3.0
> Environment: Mac OS X 10.8.2, Cordova CLI v2.3.4
> Reporter: Tommy-Carlos Williams
> Assignee: Filip Maj
> Fix For: 2.4.0
>
>
> Setting say "UIWebViewBounce" in the main ./www/config.xml does not get set
> properly for the app in iOS (untested for other platforms).
> Reproduction:
> * cordova create iOSConfigRepro org.devgeeks.iosconfigrepro iOSConfigRepro
> * cd iOSConfigRepro/
> * (add '<preference name="UIWebViewBounce" value="false" />' to
> ./www/config.xml)
> * cordova platform add ios
> * grep UIWebViewBounce ./www/config.xml
> * <preference name="UIWebViewBounce" value="false" />
> * grep UIWebViewBounce ./platforms/ios/www/config.xml
> * <preference name="UIWebViewBounce" value="false" />
> * grep UIWebViewBounce ./platforms/ios/iOSConfigRepro/config.xml
> * <preference name="UIWebViewBounce" value="true" />
> "UIWebViewBounce" preference gets set from project level config.xml in the
> platforms/ios/www/config.xml but NOT in the
> platforms/ios/<app_name>/config.xml
> platforms/ios/<app_name>/config.xml seems to be authoritative for these
> preferences.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira