cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Moore (JIRA)" <>
Subject [jira] [Created] (CB-4396) unable to add ios plugin using plugman with js-module
Date Thu, 25 Jul 2013 17:33:49 GMT
Dan Moore created CB-4396:

             Summary: unable to add ios plugin using plugman with js-module
                 Key: CB-4396
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugman
         Environment: cordova 2.9.5, macos 10.7.5
            Reporter: Dan Moore
            Assignee: Filip Maj

I am unable to get an ios plugin to work with plugman when I use the js-module tag for identifying
my javascript.

You can see the plugin I'm trying to install here:

When I use the asset tag, everything works fine.

To replicate the issue, you can create a sample project, and pull in the above branch of the
plugin and add it.  Then add a couple of alerts to the recievedEvent function in index.js:

alert("foo: "+applicationPreferences);
alert("foo4: "+applicationPreferences.get);

applicationPreferences is an object, but applicationPreferences.get is undefined.

If you do the same thing with an 'asset' tag (and of course, adding it to the index.html and
using the closure in applicationPreferences.js) then window.plugins.applicationPreferences
works just fine.

I thought the issue was the plugin.xml formatting, and I tried a number of different formats,
as you can see here:

I have looked at the plugman plugin.xml spec, and I think I was setting up js-module correctly.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message