cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-7707) Implement a multipart Plugin Result for Android
Date Fri, 03 Oct 2014 14:14:34 GMT


ASF GitHub Bot commented on CB-7707:

Github user agrieve commented on a diff in the pull request:
    --- Diff: framework/src/org/apache/cordova/ ---
    @@ -80,6 +83,12 @@ public PluginResult(Status status, byte[] data, boolean binaryString)
             this.encodedMessage = Base64.encodeToString(data, Base64.NO_WRAP);
    +    public PluginResult(Status status, List<PluginResult> multipartMessages) {
    --- End diff --
    Add a comment here saying that the keepCallback of the multipartMessages is ignored.

> Implement a multipart Plugin Result for Android
> -----------------------------------------------
>                 Key: CB-7707
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Android, CordovaJS, iOS
>    Affects Versions: 3.7.0
>            Reporter: Michal Mocny
>            Assignee: Michal Mocny
>             Fix For: 2.6.0
> We added multipart messages to iOS, and added support to the bridge for Android, but
never actually implemented a way to send multiple messages.
> This is specifically required because ArrayBuffers are only decoded if they are a top-level
argument (cannot be nested within a JSON object), and so you cannot send a reply with both
an ArrayBuffer and another argument (string descriptor for example).
> We've previously hacked around this by using "keepCallback" and expecting multiple messages
with different arguments, but it leads to complicated state transfers and is quite inefficient.

This message was sent by Atlassian JIRA

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

View raw message