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

Android PluginManager not loading plugins from config.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Windows 7 x64 (but should not be relevant)

    Description

      When I try to use BarcodeScanner I keep getting "Class not found".

      After debugging with cordova from master I noticed loadPlugins function doesn't set service/class values for plugins.

      There seem to be a missing if (around line #130):

                      }
                      else if (strNode.equals("plugin")) {
                          service = xml.getAttributeValue(null, "name");
                          pluginClass = xml.getAttributeValue(null, "value");
                      }
                      else if (insideFeature && strNode.equals("param")) {
      

      Tested this on Android 4.2 (Nexus 7) and it seem to work fine. At the moment the mentioned plugin is not working but will add a patch for that today.

      Attachments

        Issue Links

          Activity

            People

              sierra Michael Sierra
              nux Nux
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: