You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Don Coleman <do...@gmail.com> on 2013/11/03 19:00:47 UTC
BlackBerry 10 plugins and config.xml
I'm trying to update a BlackBerry 10 plugin to use Cordova 3.1.0.
I'd like to map the plugin id, com.chariotsolutions.nfc.plugin, to
NfcPlugin so the cordova.exec calls work across all platforms.
No matter what I put in config.xml, Corodva appears to ignore it and use
the plugin's id for calls to corodova.exec.
<config-file target="www/config.xml" parent="/widget">
<!--
<feature name="NfcPlugin" value="NfcPlugin" />
-->
<feature name="NfcPlugin" value="com.chariotsolutions.nfc.plugin" />
</config-file>
Is there a way to alias the plugin name for corodva.exec?
Re: BlackBerry 10 plugins and config.xml
Posted by Bryan Higgins <br...@bryanhiggins.net>.
Logged an issue for this: https://issues.apache.org/jira/browse/CB-5281
On Mon, Nov 4, 2013 at 1:40 PM, Braden Shepherdson <br...@chromium.org>wrote:
> This sounds like a bug in BB10. The aliasing is the intended behavior and
> supposed to work - both sides of cordova.exec should be using the name from
> the <feature> tag, not the plugin ID.
>
> Braden
>
>
> On Mon, Nov 4, 2013 at 12:33 PM, Don Coleman <do...@gmail.com>
> wrote:
>
> > I think you're right about plugman not guaranteeing unique names. Even if
> > it's a bad idea, I'd like to be able to alias the name of the plugin for
> > the cordova.exec call so the common js is consistent across platforms. I
> > can alias the name on Android, WP, BB10 w/ Cordova 2.x, and BB7.
> >
> > Is the feature tag is supposed to let me do this?
> >
> >
> >
> > On Sun, Nov 3, 2013 at 7:45 PM, Gorkem Ercan <go...@gmail.com>
> > wrote:
> >
> > >
> > > Perhaps it should be the other platforms that should match the
> Blackberry
> > > behavior. AFAIK plugman does not guarantee feature names to be unique.
> > > --
> > > Gorkem
> > >
> > > On Sun, Nov 03, 2013 at 01:00:47PM -0500, Don Coleman wrote:
> > > > I'm trying to update a BlackBerry 10 plugin to use Cordova 3.1.0.
> > > >
> > > > I'd like to map the plugin id, com.chariotsolutions.nfc.plugin, to
> > > > NfcPlugin so the cordova.exec calls work across all platforms.
> > > >
> > > > No matter what I put in config.xml, Corodva appears to ignore it and
> > use
> > > > the plugin's id for calls to corodova.exec.
> > > >
> > > > <config-file target="www/config.xml" parent="/widget">
> > > > <!--
> > > > <feature name="NfcPlugin" value="NfcPlugin" />
> > > > -->
> > > > <feature name="NfcPlugin"
> value="com.chariotsolutions.nfc.plugin"
> > />
> > > > </config-file>
> > > >
> > > > Is there a way to alias the plugin name for corodva.exec?
> > >
> >
>
Re: BlackBerry 10 plugins and config.xml
Posted by Braden Shepherdson <br...@chromium.org>.
This sounds like a bug in BB10. The aliasing is the intended behavior and
supposed to work - both sides of cordova.exec should be using the name from
the <feature> tag, not the plugin ID.
Braden
On Mon, Nov 4, 2013 at 12:33 PM, Don Coleman <do...@gmail.com> wrote:
> I think you're right about plugman not guaranteeing unique names. Even if
> it's a bad idea, I'd like to be able to alias the name of the plugin for
> the cordova.exec call so the common js is consistent across platforms. I
> can alias the name on Android, WP, BB10 w/ Cordova 2.x, and BB7.
>
> Is the feature tag is supposed to let me do this?
>
>
>
> On Sun, Nov 3, 2013 at 7:45 PM, Gorkem Ercan <go...@gmail.com>
> wrote:
>
> >
> > Perhaps it should be the other platforms that should match the Blackberry
> > behavior. AFAIK plugman does not guarantee feature names to be unique.
> > --
> > Gorkem
> >
> > On Sun, Nov 03, 2013 at 01:00:47PM -0500, Don Coleman wrote:
> > > I'm trying to update a BlackBerry 10 plugin to use Cordova 3.1.0.
> > >
> > > I'd like to map the plugin id, com.chariotsolutions.nfc.plugin, to
> > > NfcPlugin so the cordova.exec calls work across all platforms.
> > >
> > > No matter what I put in config.xml, Corodva appears to ignore it and
> use
> > > the plugin's id for calls to corodova.exec.
> > >
> > > <config-file target="www/config.xml" parent="/widget">
> > > <!--
> > > <feature name="NfcPlugin" value="NfcPlugin" />
> > > -->
> > > <feature name="NfcPlugin" value="com.chariotsolutions.nfc.plugin"
> />
> > > </config-file>
> > >
> > > Is there a way to alias the plugin name for corodva.exec?
> >
>
Re: BlackBerry 10 plugins and config.xml
Posted by Don Coleman <do...@gmail.com>.
I think you're right about plugman not guaranteeing unique names. Even if
it's a bad idea, I'd like to be able to alias the name of the plugin for
the cordova.exec call so the common js is consistent across platforms. I
can alias the name on Android, WP, BB10 w/ Cordova 2.x, and BB7.
Is the feature tag is supposed to let me do this?
On Sun, Nov 3, 2013 at 7:45 PM, Gorkem Ercan <go...@gmail.com> wrote:
>
> Perhaps it should be the other platforms that should match the Blackberry
> behavior. AFAIK plugman does not guarantee feature names to be unique.
> --
> Gorkem
>
> On Sun, Nov 03, 2013 at 01:00:47PM -0500, Don Coleman wrote:
> > I'm trying to update a BlackBerry 10 plugin to use Cordova 3.1.0.
> >
> > I'd like to map the plugin id, com.chariotsolutions.nfc.plugin, to
> > NfcPlugin so the cordova.exec calls work across all platforms.
> >
> > No matter what I put in config.xml, Corodva appears to ignore it and use
> > the plugin's id for calls to corodova.exec.
> >
> > <config-file target="www/config.xml" parent="/widget">
> > <!--
> > <feature name="NfcPlugin" value="NfcPlugin" />
> > -->
> > <feature name="NfcPlugin" value="com.chariotsolutions.nfc.plugin" />
> > </config-file>
> >
> > Is there a way to alias the plugin name for corodva.exec?
>
Re: BlackBerry 10 plugins and config.xml
Posted by Gorkem Ercan <go...@gmail.com>.
Perhaps it should be the other platforms that should match the Blackberry
behavior. AFAIK plugman does not guarantee feature names to be unique.
--
Gorkem
On Sun, Nov 03, 2013 at 01:00:47PM -0500, Don Coleman wrote:
> I'm trying to update a BlackBerry 10 plugin to use Cordova 3.1.0.
>
> I'd like to map the plugin id, com.chariotsolutions.nfc.plugin, to
> NfcPlugin so the cordova.exec calls work across all platforms.
>
> No matter what I put in config.xml, Corodva appears to ignore it and use
> the plugin's id for calls to corodova.exec.
>
> <config-file target="www/config.xml" parent="/widget">
> <!--
> <feature name="NfcPlugin" value="NfcPlugin" />
> -->
> <feature name="NfcPlugin" value="com.chariotsolutions.nfc.plugin" />
> </config-file>
>
> Is there a way to alias the plugin name for corodva.exec?