cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <>
Subject [jira] [Closed] (CB-8063) CDVCommandStatus.NO_RESULT calls fail on ios
Date Sun, 20 Mar 2016 21:51:33 GMT


jcesarmobile closed CB-8063.
    Resolution: Duplicate
      Assignee: jcesarmobile

Seems a duplicate of CB-8580

CB-8580 it's a WP8 bug, but the change was made on cordova.js, so it should be fixed here

> CDVCommandStatus.NO_RESULT calls fail on ios
> --------------------------------------------
>                 Key: CB-8063
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 4.0.0
>         Environment: iOS
>            Reporter: James Keshavarzi
>            Assignee: jcesarmobile
> Cordova version: 4.1.2
> When returning a pluginResult with a resultWithStatus of NO_RESULT, the fail callback
gets called for a plugin, when it shouldn't. Previously nothing was called in the client (success/fail)
and the plugin was free to continue execution and later send a status of OK or ERROR as it
deemed necessary. Sending a NO_RESULT seems to perform the same operations as sending an ERROR,
which seems wrong.
> The below code ends up calling the fail callback.
> {code}
> pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_NO_RESULT];
> pluginResult.keepCallback = [NSNumber numberWithInt:1];
> [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
> {code}

This message was sent by Atlassian JIRA

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

View raw message