cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <shaz...@gmail.com>
Subject Re: [Discuss] Why was device.name removed from the device-plugin?
Date Fri, 17 Jun 2016 19:23:34 GMT
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