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

ASF GitHub Bot commented on CB-8917:
------------------------------------

GitHub user riknoll opened a pull request:

    https://github.com/apache/cordova-docs/pull/428

    CB-8917: adding docs for Android lifecycle considerations

    ***Don't Merge! Dependent on [CB-8917 
PR](https://github.com/apache/cordova-android/pull/239) in cordova-android!***
    
    @infil00p @jasongin I'd appreciate if you could look this over to make sure 
it's accurate. It adds documentation for my proposed API change, but also gives 
a general guide for handling the Activity lifecycle in Cordova apps on Android. 
I think everything before the last section applies to cordova-android as it 
currently stands, and could be useful independent of CB-8917. Any feedback is 
appreciated.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/riknoll/cordova-docs CB-8917-docs

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-docs/pull/428.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #428
    
----
commit 46e6127053e69bdf718e4726a0247f6362bd68c7
Author: riknoll <[email protected]>
Date:   2015-11-19T20:37:46Z

    CB-8917: adding docs for Android lifecycle considerations

----


> Add api/way to get plugins results even when Cordova activity restarts  
> ------------------------------------------------------------------------
>
>                 Key: CB-8917
>                 URL: https://issues.apache.org/jira/browse/CB-8917
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Bnaya
>
> 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 platforms)
> 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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to