Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8F7EC1E6 for ; Tue, 8 May 2012 02:59:02 +0000 (UTC) Received: (qmail 69745 invoked by uid 500); 8 May 2012 02:59:02 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 69698 invoked by uid 500); 8 May 2012 02:59:02 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 69672 invoked by uid 99); 8 May 2012 02:59:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 02:59:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mikeywbrooks@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 02:58:57 +0000 Received: by werb13 with SMTP id b13so1239036wer.6 for ; Mon, 07 May 2012 19:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=zRR0m5Gt3kbd2I0rX2aDyJ6Rjn5A6sVQ1Wc6ZPEbbHk=; b=cvkDftNpxJRchOB0bXS2sXvEdTMZdS/enpzuKQGYTw4MLe4goaIyH10B+rgrBnPuC8 0t9Vhx2fIIDj3VWRWvBpziAviJBV5S0Ldatgatd46tcxhzBSHIHMla3TS6PkI6nMQqr9 JkLZ64KjvasYHmTbwIarjHaKst318DnpwHz/P9uocX3R367/GWyYnXGIE2JlY+Akc6TT 5RgAjag2DkvB/um+dvcrHSAMAQMlTI0u3GEqFFXfAjhilkJeJHz983njHWHMLmuXk5mL LCtwxCC7EvMM21Xxk7hkszANHlXpC84BkvfYBSOnI0HVnWEAISN5VpCcR9vQGU/ylSO/ 9hDg== MIME-Version: 1.0 Received: by 10.180.78.164 with SMTP id c4mr40624726wix.10.1336445915946; Mon, 07 May 2012 19:58:35 -0700 (PDT) Sender: mikeywbrooks@gmail.com Received: by 10.223.58.129 with HTTP; Mon, 7 May 2012 19:58:35 -0700 (PDT) In-Reply-To: References: Date: Mon, 7 May 2012 22:58:35 -0400 X-Google-Sender-Auth: mqSjKwISuRUOms86lvr_ZkGVzd8 Message-ID: Subject: Re: API addition: application version From: Michael Brooks To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d0435c08214ddf504bf7d90cd X-Virus-Checked: Checked by ClamAV on apache.org --f46d0435c08214ddf504bf7d90cd Content-Type: text/plain; charset=ISO-8859-1 Could we consider using the W3C Widget Interface [1]? It's a programmatic interface to the W3C Widget Specification [2]. In that case, it would be: window.widget.version [1] http://www.w3.org/TR/widgets-apis/#the-widget-interface [2] http://www.w3.org/TR/widgets/ On Mon, May 7, 2012 at 10:53 PM, Shazron wrote: > I like navigator.app.version > > On Mon, May 7, 2012 at 7:50 PM, Simon MacDonald > wrote: > > Seems easy to do on android and probably belongs in navigator.app.version > > since app is our own non-W3C extension. > > > > Simon > > > > On Monday, May 7, 2012, Filip Maj wrote: > > > >> Stems from https://issues.apache.org/jira/browse/CB-635 > >> > >> TL;DR: providing a JS API in cordova for accessing the application > version > >> as defined in native. Shaz has already commented on how to do this in > iOS. > >> In Android I understand the manifest versionCode / versionString > >> properties are available (and should be accessible). > >> > >> First question: is this a valuable API? IMO: yes. Programmatically > >> accessing app version for issue resolution and stuff like that seems > like > >> a good thing. > >> > >> Second question: How viable is this for Bada / WP7 / BB WebWorks / other > >> platforms? > >> > >> Third question (assuming Q1 response is "yes"): how to frame this API? > >> > >> Thoughts/comments/suggestions appreciated! > >> > >> > > > > -- > > Simon Mac Donald > > http://hi.im/simonmacdonald > --f46d0435c08214ddf504bf7d90cd--