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 5F1F1DF6B for ; Tue, 12 Mar 2013 19:32:45 +0000 (UTC) Received: (qmail 87252 invoked by uid 500); 12 Mar 2013 19:32:45 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 87199 invoked by uid 500); 12 Mar 2013 19:32:45 -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 Received: (qmail 87190 invoked by uid 99); 12 Mar 2013 19:32:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2013 19:32:45 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fil@adobe.com designates 64.18.1.183 as permitted sender) Received: from [64.18.1.183] (HELO exprod6og102.obsmtp.com) (64.18.1.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2013 19:32:38 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob102.postini.com ([64.18.5.12]) with SMTP ID DSNKUT+CwPbxD7mj/UjZLW4eptqGnzbcITV1@postini.com; Tue, 12 Mar 2013 12:32:17 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r2CJT91v023865 for ; Tue, 12 Mar 2013 12:29:10 -0700 (PDT) Received: from nacas01.corp.adobe.com (nacas01.corp.adobe.com [10.8.189.99]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id r2CJUXXc017028 for ; Tue, 12 Mar 2013 12:32:14 -0700 (PDT) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nacas01.corp.adobe.com ([10.8.189.99]) with mapi; Tue, 12 Mar 2013 12:32:08 -0700 From: Filip Maj To: "dev@cordova.apache.org" Date: Tue, 12 Mar 2013 12:32:07 -0700 Subject: Re: prompt dialog for the Notification API? Thread-Topic: prompt dialog for the Notification API? Thread-Index: Ac4fWEjFCTD3DnCLSIuFsuK+eMYA0g== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.1.130117 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org 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 >>