[
https://issues.apache.org/jira/browse/CB-7693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesse MacFadyen resolved CB-7693.
---------------------------------
Resolution: Unresolved
Currently plugins do not support navigation, unless (potentially) they manage
their own state.
Navigation already causes the entire DOM to be dropped and reloaded, so the JS
side of the callbacks are already gone, and the next page load will begin with
a different seed for callbackID.
> Auto detaching handlers for commands
> ------------------------------------
>
> Key: CB-7693
> URL: https://issues.apache.org/jira/browse/CB-7693
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugins, WP8
> Affects Versions: 3.6.3
> Reporter: Lee Crossley
> Assignee: Jesse MacFadyen
>
> The `webBrowser_Unloaded` method which detaches event handlers of plugin
> commands (to prevent memory leak on page navigation) clears ALL plugin
> callbacks (aka ResultHandlers).
> If you have a plugin that performs navigation, the callback is lost, which
> will result in a "Failed to locate callback for id" error.
> I'm unable to see a workaround for this without modifying the BaseCommand or
> NativeExecution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]