cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Polivy (JIRA)" <>
Subject [jira] [Commented] (CB-8917) Add api/way to get plugins results even when Cordova activity restarts
Date Wed, 27 Jan 2016 21:29:40 GMT


Dan Polivy commented on CB-8917:

[~riknoll] If the resume event is fired before the cordova.js has fully loaded, and the client
has subscribed to the resume event, what happens? I'm playing with this now using android@5.1.0
and the updated Camera plugin, and on resume I can see the resume event be fired from the
native side, but I don't appear to be receiving it in the JS.

Note, we are loading our start page via a remote URL, so there's a little more latency on
startup than a typical app.

Should the resume event be 'sticky' in this scenario, so that it is fired when the client
subscribes (if it has been fired by the native code)?

> Add api/way to get plugins results even when Cordova activity restarts  
> ------------------------------------------------------------------------
>                 Key: CB-8917
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Bnaya
>            Assignee: Richard B Knoll
> In android when you have a plugin that opens new activity the CordovaActivity will be
killed and you won't get the result from the plugin.
> The new activity will get the results but because the plugin objects are dead and the
webview reloaded you can get the data to the js callback.
> The most noticeable example is the camera plugin. (And maybe its the same with even more
> possible solution for this is to add metadata to the device ready event with incoming
data from plugins.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message