Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5BE54200B34 for ; Sat, 18 Jun 2016 00:03:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5A8D5160A62; Fri, 17 Jun 2016 22:03:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A1E0B160A61 for ; Sat, 18 Jun 2016 00:03:24 +0200 (CEST) Received: (qmail 87800 invoked by uid 500); 17 Jun 2016 22:03:21 -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 87624 invoked by uid 99); 17 Jun 2016 22:03:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2016 22:03:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E2AFB180BD9 for ; Fri, 17 Jun 2016 22:03:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id B31yQq3yiqid for ; Fri, 17 Jun 2016 22:03:18 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6E8485F19D for ; Fri, 17 Jun 2016 22:03:17 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id l188so6287554lfe.2 for ; Fri, 17 Jun 2016 15:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/9LRTSDHfQDbjfOp63mcwCidi/pFpATw8+7Af5npSU0=; b=XmMPCPLiVEMCwFdJO17bSybf0XTcPjm265zt817HJaA1W3Bai20nqVJ21Sm3lHChD+ 8guyShFuZG6F5TVGDeXy5cCbz+fU7w5slQaMF5D5ok9HAp420Ny7wWGI38Z4LcGn6e+X Cru+kO/6d+CxCVIkobL6a0Pv68TNKwMmbRtLkVRbpClrTzvreiE45Ursy+CWNrRzzB9a /FpC11ijvdWfvSGhZmVW9b9Iv/7rteA4NWbcSMScwPhF8tXXg+cdmvdGIw4x/Unon40t Ch1F+ZbbowSib/ragCFj1oQ9bMKpQ5mCUYIr41/XP2ArJozy1Sr27yfhbkXocy9D0vWz 7i0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=/9LRTSDHfQDbjfOp63mcwCidi/pFpATw8+7Af5npSU0=; b=AN0PNhUKNrgJCLz+j6PD5Dkv6fYARUUhflgvdA/hasZwNQZcj1bUM42KLVckT5mmO4 xVxMrRuCICg3aeSp0c1Tk1tQI7VApCoJ0Nu55XOz9ux2rccG73phMF5QDEGQqlS6v2UB yBaCEorZH91iN7j7vYvbfQ7rM8ySr22gaBL8muEiY0XDhK0aDzgcOe6YZvTZz3wTlhqy HDSQaXALXBKLRn9y8d1SJ3CmdLP0fb7B0LiCbUy3s9QLrVwP9msjX9YQHu5D8YgczNp7 fBT/goVOTmaI/+dk7Qc9MoRgG6lz1g3XY90od5aswGf9CuMYrHbY8nbZFirQX5X1html 0lRQ== X-Gm-Message-State: ALyK8tJDE7AEXMBehNojamUbiCj+LDuet1286mOKAhfChHJoddUPT/zGds5hQYFN92rzMxdobSunPOfDPRYiFA== X-Received: by 10.46.33.12 with SMTP id h12mr1200429ljh.43.1466200996628; Fri, 17 Jun 2016 15:03:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.148.208 with HTTP; Fri, 17 Jun 2016 15:02:56 -0700 (PDT) In-Reply-To: References: From: Philipp Kursawe Date: Sat, 18 Jun 2016 00:02:56 +0200 Message-ID: Subject: Re: [Discuss] Why was device.name removed from the device-plugin? To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=001a1142c5c892d03f05358085c6 archived-at: Fri, 17 Jun 2016 22:03:25 -0000 --001a1142c5c892d03f05358085c6 Content-Type: text/plain; charset=UTF-8 Thanks for pointing this out. However the name is not used to reference the device to the API. Thats what the device.uuid is being used for. The device name is used in the UI where the user can see its API enabled devices. You don't want to show the user the device id there (cause she has no point of reference to which physical device it belongs) but the name she gave her phone and knows her phone when she connects it to itunes, iphoto etc. So the reason to introduce the name property back is exactly the one you mentioned: The user can always change the name of her phone and there knows its name and will recognize it in a list of devices. On Fri, Jun 17, 2016 at 9:23 PM, Shazron wrote: > Hi Philipp, > This was the rationale: > > https://lists.apache.org/thread.html/e3b0e5f87ba3929d5578308b25ee9a6af5b91177b94015878970fa8e@1352248856@%3Cdev.cordova.apache.org%3E > > On iOS, [UIDevice name] returns the name the user sets in iTunes for their > device i.e. "Shazron's iPhone 4", and can change anytime so relying on it > for API access would be problematic. > > > On Fri, Jun 17, 2016 at 1:51 AM, Philipp Kursawe > wrote: > > > I wonder why such an important piece of information is not provided > anymore > > in the device plugin? > > What was the reason to remove the property? > > > > The name of the device, especially when users can authorise/revoke API > > access to apps on different devices, is an important variable to know. > > > > There is a plugin that brings back this functionality for Android, iOS > and > > for Windows it would be a one-liner only too. > > https://github.com/becvert/cordova-plugin-device-name > > > --001a1142c5c892d03f05358085c6--