incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Brooks (JIRA)" <>
Subject [jira] [Commented] (CB-589) What is the return value of Notification.confirm?
Date Tue, 08 May 2012 20:41:48 GMT


Michael Brooks commented on CB-589:

Hey Jesse,

As far as I know, the Notification API is not based on a standard and is our own home-brewed

It looks like the four major platforms return index + 1 as the value for button:

* [iOS CDVNotification.m|]
* [Android|]
* [BlackBerry|].
* [WP7 Notification.cs|]

So, I think it's safe to say that is the common return value. I'll update the documentation
with a note about the expected returned value.

Any idea if it's a string or integer in JavaScript?
> What is the return value of Notification.confirm?
> -------------------------------------------------
>                 Key: CB-589
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs
>    Affects Versions: 1.6.1
>         Environment:
>            Reporter: Jesse MacFadyen
>            Assignee: Michael Brooks
>             Fix For: 1.8.0
> The sample code demonstrates that the confirm callback is called with a 'button' param,
but does not specify the type of the return value, or what it means.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message