cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2699) Bug in dynamic loading of a plugin at CDVViewController's registerPlugin method
Date Mon, 18 Mar 2013 18:58:17 GMT

    [ https://issues.apache.org/jira/browse/CB-2699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13605473#comment-13605473
] 

Shazron Abdullah commented on CB-2699:
--------------------------------------

If you have a patch or pull request for the fix, that would be appreciated :)
                
> 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

Mime
View raw message