How to get iPhone unique identifier (UDID) using Phonegap?

How to get iPhone unique identifier (UDID) using Phonegap? Any code?

+4
source share
3 answers

var string = device.uuid;

Phonegap api docs here if you need more info ... http://docs.phonegap.com/phonegap_device_device.md.html#device.uuid

-4
source

You cannot get the UDID from the phone book API at the moment.

Why?

UDID is a unique identifier for iOS devices, and it is not available on other platforms such as Android, Windows, etc. And therefore, the phone book cannot provide udid, since it must support all platforms.

Solution :

The Phonegap API provides another unique uuid identifier. This will be unique for each installation of the application.

Disadvantage . This unique key is a system-generated key that is created each time the application is downloaded (first application launch). And therefore, you cannot correctly identify the device. Removing the application and installing it again will lead to the regeneration of another udid.

URL: http://docs.phonegap.com/en/1.0.0/phonegap_device_device.md.html#device.uuid

Hope this makes sense.

+6
source

A UUID (Universally Unique Identifier) โ€‹โ€‹is available for each application. Defines the application on the device. Until the user completely uninstalls the application, this identifier will be stored between application launches and, at least, will allow you to identify the same user using a specific application on the device. Unfortunately, if the user completely deletes and then closes the application again, then the identifier will change.

UDID (unique device identifier) โ€‹โ€‹A sequence of 40 hexadecimal characters that uniquely identify an ios device. This value can be obtained via iTunes or found using the UIDevice -uniqueIdentifier. It is made from hardware parts such as MAC address.

+1
source

Source: https://habr.com/ru/post/1339174/


All Articles