You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jukka N (JIRA)" <ji...@apache.org> on 2013/03/18 11:44:15 UTC
[jira] [Created] (CB-2699) Bug in dynamic loading of a plugin at
CDVViewController's registerPlugin method
Jukka N created CB-2699:
---------------------------
Summary: Bug in dynamic loading of a plugin at CDVViewController's registerPlugin method
Key: CB-2699
URL: https://issues.apache.org/jira/browse/CB-2699
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 2.5.0
Environment: iOS 6.1
Reporter: Jukka N
Assignee: Shazron Abdullah
When loading a Cordova plugin later on in application run-time with the registerPlugin method, the plugin is not loaded correctly and the plugin cannot be used. This happens when the plugin is not defined in the config.xml. In our project we have a view which runs "widgets" that are downloaded from a server and these widgets use some Cordova plugins, but we don't know beforehand what plugins they use, so we don't want to add them to config.xml.
Apparently registerPlugin method adds the plugin to pluginObjects but doesn't add it to the pluginsMap. So we have to do a hack and add the plugin to the pluginsMap ourselves after registering the plugin.
--
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: http://www.atlassian.com/software/jira