[
https://issues.apache.org/jira/browse/CB-2699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah resolved CB-2699.
----------------------------------
Resolution: Fixed
Fix commit - http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/66caa6a2
> 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