And then the app has to load that package.json ?
On Feb 10, 2015 5:28 PM, "Steven Gill" <[email protected]> wrote:

> Plugin.xml has a platforms tag for what platforms it supports. That info
> gets uploaded to the Cordova plugins registry when publishing.
>
> Soon this info will be available in package.json file each plugin has.
> On Feb 10, 2015 7:25 AM, "Axel Nennker" <[email protected]> wrote:
>
> > Hi,
> >
> > is there a way how an app can determine whether a plugin supports the
> > current  platform?
> >
> > E.g.: the barcodescanner plugin is not supporting firefoxos
> > How could an app know that which out hardcoding this into the app?
> >
> > If there is a standard way in Cordova then this is a userland question.
> > If not then this is a feature request to add this info to e.g.
> > cordova/plugin_list exports.metadata ?!
> >
> > -Axel
> >
>

Reply via email to