Re: Get customized feature parameter value from config.xml

2014-04-16 Thread Shazron
I added the issue: https://issues.apache.org/jira/browse/CB-6458 Re-created below: For the proposed solution, there are no changes needed to the config.xml specification, since the feature tag already supports param child tags. I'm only speaking for iOS, not sure about the other platforms. The p

Re: Get customized feature parameter value from config.xml

2014-04-15 Thread Carlos Santana
Shaz do we have a jira item for this limitation? Maybe something that can be address short term via plugin dev docs, and long term maybe with new config.xml/json :-) On Mon, Apr 14, 2014 at 4:29 PM, Li, Jonathan wrote: > That works. Thanks. > > On 4/14/14 4:26 PM, "Shazron" wrote: > > >Yes,

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Li, Jonathan
That works. Thanks. On 4/14/14 4:26 PM, "Shazron" wrote: >Yes, that is the known limitation. My suggestion is to prefix the >preference name with your plugin name, or whatever you prefer. > > >On Mon, Apr 14, 2014 at 1:12 PM, Li, Jonathan wrote: > >> Although the preference can be defined in pl

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Shazron
Yes, that is the known limitation. My suggestion is to prefix the preference name with your plugin name, or whatever you prefer. On Mon, Apr 14, 2014 at 1:12 PM, Li, Jonathan wrote: > Although the preference can be defined in plugin.xml on per platform and > plugin level, but when the informati

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Li, Jonathan
Although the preference can be defined in plugin.xml on per platform and plugin level, but when the information is used to generate config.xml, the related preference element will be generated under the root "widget" element, and so shared by all plugins. This may cause conflict if the same prefere

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Shazron
per platform in the platform tag - yes. plugin level - yes. On Mon, Apr 14, 2014 at 11:34 AM, Li, Jonathan wrote: > Does "preference" can be set on per platform and plugin level? > > On 4/14/14 2:27 PM, "Shazron" wrote: > > >Will a tag not suffice? > > > > > >On Mon, Apr 14, 2014 at 11:23 A

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Li, Jonathan
Does "preference" can be set on per platform and plugin level? On 4/14/14 2:27 PM, "Shazron" wrote: >Will a tag not suffice? > > >On Mon, Apr 14, 2014 at 11:23 AM, Li, Jonathan >wrote: > >> Hi, >> In the following sample plugin.xml and config.xml , the parameter >> "enable-redirect" can be co

Re: Get customized feature parameter value from config.xml

2014-04-14 Thread Shazron
Will a tag not suffice? On Mon, Apr 14, 2014 at 11:23 AM, Li, Jonathan wrote: > Hi, > In the following sample plugin.xml and config.xml , the parameter > "enable-redirect" can be configured by app developers when they add the > plugin to cordova project. However, currently only "ios-package"

Get customized feature parameter value from config.xml

2014-04-14 Thread Li, Jonathan
Hi, In the following sample plugin.xml and config.xml , the parameter "enable-redirect" can be configured by app developers when they add the plugin to cordova project. However, currently only "ios-package" and "onload" parameters are parsed and stored by config.xml's settings parser, other par