Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
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
There are no Sub-Tasks for this issue.