cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp Kursawe <phil.kurs...@gmail.com>
Subject Re: [Discuss] Why was device.name removed from the device-plugin?
Date Fri, 17 Jun 2016 22:02:56 GMT
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 <shazron@gmail.com> 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 <phil.kursawe@gmail.com>
> 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
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message