Windows Phone 8 Quirks

device.uuid

Description

The details of how a UUID is generated are determined by the device manufacturer and are specific to the device's platform or model.

Supported Platforms

Android

BlackBerry 10

iOS

Tizen

Windows Phone 7 and 8

Windows

OSX

Quick Example

// Android: Returns a random 64-bit integer (as a string, again!)

// The integer is generated on the device's first boot

//

// BlackBerry: Returns the PIN number of the device

// This is a nine-digit unique integer (as a string, though!)

//

// iPhone: (Paraphrased from the UIDevice Class documentation)

// Returns the [UIDevice identifierForVendor] UUID which is unique and the same for all apps installed by the same vendor. However the UUID can be different if the user deletes all apps from the vendor and then reinstalls it.

// Windows Phone 7 : Returns a hash of device+current user,

// if the user is not defined, a guid is generated and will persist until the app is uninstalled

// Tizen: returns the device IMEI (International Mobile Equipment Identity or IMEI is a number

// unique to every GSM and UMTS mobile phone.

var deviceID =device.uuid;

iOS Quirk

The uuid on iOS uses the identifierForVendor property. It is unique to the device across the same vendor, but will be different for different vendors and will change if all apps from the vendor are deleted and then reinstalled.
Refer here for details.
The UUID will be the same if app is restored from a backup or iCloud as it is saved in preferences. Users using older versions of this plugin will still receive the same previous UUID generated by another means as it will be retrieved from preferences.

OSX Quirk

The uuid on OSX is generated automatically if it does not exist yet and is stored in the standardUserDefaults in the CDVUUID property.

Windows Phone 7 and 8 Quirks

The uuid for Windows Phone 7 requires the permission
ID_CAP_IDENTITY_DEVICE. Microsoft will likely deprecate this
property soon. If the capability is not available, the application
generates a persistent guid that is maintained for the duration of the
application's installation on the device.