Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B99161730C for ; Fri, 3 Oct 2014 15:31:34 +0000 (UTC) Received: (qmail 30507 invoked by uid 500); 3 Oct 2014 15:31:34 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 30487 invoked by uid 500); 3 Oct 2014 15:31:34 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 30371 invoked by uid 99); 3 Oct 2014 15:31:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 15:31:34 +0000 Date: Fri, 3 Oct 2014 15:31:34 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-7707) Implement a multipart Plugin Result for Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-7707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158092#comment-14158092 ] ASF GitHub Bot commented on CB-7707: ------------------------------------ Github user oahziur commented on a diff in the pull request: https://github.com/apache/cordova-android/pull/125#discussion_r18401241 --- Diff: framework/src/org/apache/cordova/PluginResult.java --- @@ -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 multipartMessages) { --- End diff -- Yes, I think only the top level status is being used. > Implement a multipart Plugin Result for Android > ----------------------------------------------- > > Key: CB-7707 > URL: https://issues.apache.org/jira/browse/CB-7707 > 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org