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 CCF9B9FA4 for ; Sat, 3 Mar 2012 07:06:08 +0000 (UTC) Received: (qmail 74841 invoked by uid 500); 3 Mar 2012 07:06:08 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 74750 invoked by uid 500); 3 Mar 2012 07:06:07 -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 Delivered-To: moderator for callback-dev@incubator.apache.org Received: (qmail 8612 invoked by uid 99); 2 Mar 2012 19:22:15 -0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brion.vibber@gmail.com designates 209.85.214.175 as permitted sender) Received-SPF: pass (google.com: domain of brion.vibber@gmail.com designates 10.182.159.65 as permitted sender) client-ip=10.182.159.65; Authentication-Results: mr.google.com; spf=pass (google.com: domain of brion.vibber@gmail.com designates 10.182.159.65 as permitted sender) smtp.mail=brion.vibber@gmail.com; dkim=pass header.i=brion.vibber@gmail.com 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=lVNUNOwea7PKoxCR5RoyHYu7cX2+eDDBHe4aahr4maE=; b=e5ERr+R5vvPvp/rNk6nzyWcvMcrskJYFNJHaO+MsX/CMLAQ9v+64lwUtSj5CmcDMKl DgXQj+CTltsDMkuGV7tfIsG5y3dMNrzyv2gQF22zoOnoRHKnOcynQM2XXFg8QN9gJCFC jp/GbY5idHPZn7MzHbuZVUeGPv6jKqB0acq0MgYZSBut6MTi69/Wj5s5rfY9wUeNCLkB QFpTRWvh4KejiPKGGojgmzqEZx/X6ntPw8EPXp5mQQ/4sXrW6TDkNwNACCLY+9+fHqUq ti+BsWd61FyJ9Ypb4DEEI4g6avMtmzbizPAe+b6grR5G3/N24TdThwt88InIfYsNpSpE g2cQ== MIME-Version: 1.0 Sender: brion.vibber@gmail.com In-Reply-To: References: Date: Fri, 2 Mar 2012 11:21:49 -0800 X-Google-Sender-Auth: LHGoNlLDKO5nD2oxA858FGCDl_k Message-ID: Subject: Re: MAC Address and User Agent From: Brion Vibber To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=14dae9399b910247db04ba477d72 X-Virus-Checked: Checked by ClamAV on apache.org --14dae9399b910247db04ba477d72 Content-Type: text/plain; charset=UTF-8 On Fri, Mar 2, 2012 at 11:00 AM, Filip Maj wrote: > I like the idea of adding cordova/phonegap to the end of the user agent > string. If purely for analytics it makes sense to me. Not entirely > clobbering that string, just adding a "Cordova Web View" or something like > that to the end of the UA string. > What I would find useful as an application developer is a reliable way to tell that I'm being loaded in a Cordova view as opposed to a web browser, so I know if I should load up the relevant phonegap.js/cordova.js etc. (Having an app that works as-is in a browser is *hugely* helpful for debugging when possible!) What our Wikipedia app does now is to check the user-agent, and assumes that Android or iPhone user-agents are running in PhoneGap, while other things initialize without PhoneGap. -- brion vibber (brion @ pobox.com / brion @ wikimedia.org) --14dae9399b910247db04ba477d72--