Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C2B6DD39 for ; Wed, 13 Mar 2013 20:29:34 +0000 (UTC) Received: (qmail 25086 invoked by uid 500); 13 Mar 2013 20:29:34 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 25051 invoked by uid 500); 13 Mar 2013 20:29:34 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Delivered-To: moderator for dev@cordova.apache.org Received: (qmail 66304 invoked by uid 99); 13 Mar 2013 18:28:57 -0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) X-AuditID: 0a41282f-b7fa06d000002431-59-5140c54f61e1 From: Bryan Higgins To: "dev@cordova.apache.org" Subject: Re: prompt dialog for the Notification API? Thread-Topic: prompt dialog for the Notification API? Thread-Index: AQHOIBak2OA9jyhN5kiJ2bNrPv8xp5ikAdeA Date: Wed, 13 Mar 2013 18:28:30 +0000 Message-ID: <6FCEDB040CA65C43AA491D9DA06AB19DC02579@XMB116CNC.rim.net> In-Reply-To: Accept-Language: en-US, en-CA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.65.160.251] Content-Type: text/plain; charset="us-ascii" Content-ID: <9AC1ABFC1EAA1E4A960B457D1F49C9F4@rim.com> content-transfer-encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGKsWRmVeSWpSXmKPExsXC5bjwgq7/UYdAgzO7TC0WfOpkdmD0WNN6 gCmAMaqB0SYpsaQsODM9T9/OJjEvL78ksSRVISW1ONlWySc1PTFHIaAosywxuVLBJbM4OScx Mze1SEkhM8VWyURJoSAnMTk1NzWvxFYpsaAgNS9FyY5LAQPYAJVl5imk5iXnp2TmpdsqeQb7 61pYmFrqGirZ6SZ08mTMPf2VveC2YsWe+4cZGxgXSXcxcnJICJhI3N26iBHCFpO4cG89Wxcj F4eQwCpGiRO7HrFDOFsYJZac6GAFqWIT0JWY9egwM4gtImAq8WPiTiYQWxho0s1369lh4me7 XkLZRhK3f98G62URUJX4NvUSWC+vgJtEw56TYJs5BQIlptx4A1bDKCArsXbOSjCbWUBc4taT +UwQ1wlILNlznhnCFpV4+fgfK4StKPFi8jkWiHodiQW7PwF9wAFkm0l87FeDCGtLLFv4Gmqt oMTJmU9YJjCKzkKyYRaS7lkI3bOQdM9C0r2AkXUVo2BuRrGBmUFyXrJeUWauXl5qySZGcELQ 0N/B+Pa9xSFGAQ5GJR5e8V0OgUKsiWXFlbmHGCU4mJVEeJfnAoV4UxIrq1KL8uOLSnNSiw8x ugLDZyKzFHdyPjBZ5ZXEGxsY4OYoifOKBIoGCgmkA1NSdmpqQWoRzBwmDk6QPVxSIsXAxJJa lFhakhEPSn/xxcAEKNXAuDZOTsP8E7NIsIFJNuf+V+tWabNoLf971zTZT3Vm+58WeZNHfE1v 7spuuMR5wXuWQa6cbfTC8tmemx7PevZaSsG3ttFm7+9AMdl+Tg/TE7OezT4zPbJ5L98xAxUd w1i7xBd8u7xd/q5Y1Xd8q9CUyvKa+edWtPHa6TIeE7lzsLI941Dp8nm/lViKMxINtZiLihMB D6xft0kDAAA= X-Virus-Checked: Checked by ClamAV on apache.org BB10 has support for this and I'll volunteer to do the implementation. If a JIRA task has or is being created, please assign it to me (bryanhiggins= ). Thanks, Bryan From: Filip Maj > Date: Wed, Mar 13, 2013 at 12:55 PM Subject: Re: prompt dialog for the Notification API? To: "dev@cordova.apache.org" > No go ahead James, no point waiting. On 3/12/13 1:59 PM, "James Jong" > wrote: >Great! Thanks for all the feedback. I'll start working on it. > >Fil - on the helper scripts. Is this something you want me to wait on >before opening up the JIRA for this? > >Max - thanks for alerting me to the buttonLabels bug. > >-James Jong > >On Mar 12, 2013, at 3:32 PM, Filip Maj = > wrote: > >> What Michal said! >> >> I will sort out some helper scripts for filing issues like this soon-ish >> and let you guys know/provide an overview (came up in the F2F) >> >> On 3/12/13 1:16 PM, "Michal Mocny" > wrote: >> >>> I think its generally the case that we don't want to hold back >>>platforms >>> just because others will not have support, so I'de say go ahead with >>>iOS >>> and Android without holding back. >>> >>> However, whenever possible be cross platform friendly and make the job >>>of >>> implementation elsewhere feasible. >>> >>> The way to do this is to file a JIRA bug for the feature, and create >>> subtasks to implement on each platform (The major 4 are iOS, Android, >>> Windows Phone, BlackBerry), then assign the ones you plan to do to >>> yourself. >>> >>> I'm not sure where best to document platform support for api's, but as >>> soon >>> as the feature lands anywhere, it should be documented publicly. >>> >>> -Michal >>> >>> >>> On Tue, Mar 12, 2013 at 11:55 AM, Becky Gibson >>> >wrote: >>> >>>> +1 >>>> >>>> I think it would be worthwhile to add this. We just need confirmation >>>> from >>>> the other platforms that this feature is available. >>>> >>>> >>>> >>>> >>>> On Mon, Mar 11, 2013 at 5:04 PM, James Jong > >>>> wrote: >>>> >>>>> I was looking at the Notification API and noticed that we have >>>> existing >>>>> support for alert and confirm dialogs but do not have one for prompt. >>>> I >>>>> think it would good to add this missing function to the Notification >>>> API. >>>>> It seems a natural fit alongside the alert and confirm methods. >>>>> >>>>> To mirror the current dialogs in the Notification API, the js method >>>> would >>>>> look something like: >>>>> navigator.notification.prompt(message, promptCallback, [title], >>>>> [buttonLabels]) >>>>> message: Dialog message to display (String) >>>>> promptCallback: Callback to invoke with index of button pressed (1 or >>>> 2). >>>>> (Function) >>>>> title: Dialog title (String) (Optional, Default: "Prompt") >>>>> buttonLabels: Comma separated string with button labels (String) >>>>> (Optional, Default: "OK,Cancel") >>>>> >>>>> The goal would be to have this across all our supported platforms. I >>>>> would like to create a JIRA item and have sub-tasks for each >>>> platform. I >>>>> plan on contributing the code for iOS and Android. I also will >>>>>update >>>>> mobile-spec tests and write the API documentation. >>>>> >>>>> My questions are: >>>>> (1) Is this a reasonable addition to the Notification API? >>>>> (2a) If so, can we initially have support for a few platforms and add >>>> more >>>>> as we go along? >>>>> (2b) Can we go ahead and publicly document the API or wait until we >>>> have >>>>> support across the platforms? >>>>> >>>>> If we agree this is good to have, here's the summary of tasks I plan >>>> to >>>>> proceed with: >>>>> create a JIRA issue with sub-tasks for each platform >>>>> contribute the code for iOS and Android >>>>> add prompt tests to mobile-spec >>>>> create the prompt API documentation >>>>> >>>>> Thoughts or comments? >>>>> >>>>> -James Jong >>>> >> > --------------------------------------------------------------------- This transmission (including any attachments) may contain confidential infor= mation, privileged material (including material protected by the solicitor-c= lient or other applicable privileges), or constitute non-public information.= Any use of this information by anyone other than the intended recipient is= prohibited. If you have received this transmission in error, please immedia= tely reply to the sender and delete this information from your system. Use,= dissemination, distribution, or reproduction of this transmission by uninte= nded recipients is not authorized and may be unlawful.