Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5379

Runtime discovery of installed plugins

    XMLWordPrintableJSON

Details

    Description

      We want Cordova apps to be able to query what plugins (and versions) are installed at runtime.

      Plugman is now injecting a tag of the kind:

      <plugins>
        <plugin id="org.apache.cordova.file" version="0.2.5" />
        <plugin id="org.apache.cordova.file-transfer" version="0.3.4" />
      </plugins>
      

      into the platform's config.xml. Each platform should be parsing this and exposing it to native plugins (PluginManager.getPluginList(), or something like that) and exposing it to Javascript via the following exec call:

      cordova.exec('CordovaPlugins', 'getPluginList', [], ...);
      

      The format of the exec call's response is a JS object whose keys are plugin IDs and whose values are their versions.

      Attachments

        Activity

          People

            shepheb Braden Shepherdson
            shepheb Braden Shepherdson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: