Does "preference" can be set on per platform and plugin level? On 4/14/14 2:27 PM, "Shazron" <shaz...@gmail.com> wrote:
>Will a <preference /> tag not suffice? > > >On Mon, Apr 14, 2014 at 11:23 AM, Li, Jonathan <jonathan...@sap.com> >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" and >> "onload" parameters are parsed and stored by config.xml's settings >>parser, >> other parameters (like "enable-redirect") are ignored by the settings >> parser, so plugin developer has to parse the config.xml again by >>themselves >> in order to get the other parameters' value. >> >> Just wonder it maybe a good idea to parse all parameters under feature >> element, and return it as a "param" dictionary, so as to make it ready >>to >> use by developers within plugin's native code. >> >> Plugin.xml: >> <platform name="ios"> >> <config-file target="config.xml" parent="/widget"> >> <feature name="myplugin"> >> <param name="ios-package" value="myPlugin"/> >> <param name="onload" value="true"/> >> <param name="enable-redirect" value="$REDIRECT"/> >> </feature> >> </config-file> >> <source-file src="ios/libs/myPlugin.a" framework="true"/> >> </platform> >> >> Config.xml >> <feature name="myplugin"> >> <param name="ios-package" value="myplugin" /> >> <param name="onload" value="true" /> >> <param name="enable-redirect" value="true" /> >> </feature> >> >> Thanks >> Jonathan >>