[
https://issues.apache.org/jira/browse/CB-8917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15055227#comment-15055227
]
ASF GitHub Bot commented on CB-8917:
------------------------------------
Github user Bnaya commented on the pull request:
https://github.com/apache/cordova-android/pull/239#issuecomment-164316409
@Titoine This is not a complete fix, and its not released yet
There's also corresponding changes to the camera plugin this change
When it will be released you will need to update your android platform and
your camera plugin.
For now, you can try my fix for that issue, which includes more fixes for
other edge cases with the plugin
https://github.com/photomania/cordova-plugin-camera/commits/prevent-crash-on-external-image-selection
Note that its not rebased with the lasted code of the camera plugin but its
works ok and we use if in production
> 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
> 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 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]