[
https://issues.apache.org/jira/browse/CB-6165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990341#comment-13990341
]
Shazron Abdullah commented on CB-6165:
--------------------------------------
Don't think this is in the native, there is already a unit-test to handle null
messages etc.
This is what is sent to the JS:
{code}
cordova.require('cordova/exec').nativeCallback('yourcallbackidhere'
/*callbackid*/, 1 /*status*/, null /*argumentsAsJson*/, 0 /*keepCallback*/);
{code}
> Removing the "OK" String from success callback
> -----------------------------------------------
>
> Key: CB-6165
> URL: https://issues.apache.org/jira/browse/CB-6165
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Ally Ogilvie
> Assignee: Shazron Abdullah
> Priority: Minor
> Labels: core
> Fix For: 3.5.0
>
>
> [Brief]
> If no "message" (e.g. messageWithString, messageWithInt) is given to the
> resultWithStatus success callback, an "OK" is added.
> [About]
> Since the very beginning oh PhoneGap a success callback without "message"
> (native args) has returned the string "OK" to the success function in
> JavaScript.
> There is no reason for this to be. The reason it's there is because it's been
> there from the beginning. But we should get rid of this now.
--
This message was sent by Atlassian JIRA
(v6.2#6252)