Packagecom.distriqt.extension.application
Classpublic class IDType
InheritanceIDType Inheritance Object



Public Constants
 ConstantDefined By
  ADVERTISING : String = advertising
Deprecated: Removed due to possible app rejection by Apple
[static] Note: We have removed this ID from this extension as it may cause your application to be rejected if you aren't using advertising in your application.
IDType
  MAC_ADDRESS : String = macaddress
[static] Currently unimplemented and will be removed as iOS no longer supports retrieval of the MAC address.
IDType
  SERVICE : String = service
[static] Uses a OS provided service to generate the identifier.
IDType
  VENDOR : String = vendor
[static] Android On Android this is the value of the ANDROID_ID.
IDType
Constant Detail
ADVERTISINGConstant
public static const ADVERTISING:String = advertising
Deprecated: Removed due to possible app rejection by Apple

Note:

We have removed this ID from this extension as it may cause your application to be rejected if you aren't using advertising in your application. This will now return the VENDOR id.

If you still require the advertising ID you can retrieve it from the Adverts extension.

iOS

On iOS this is the value of the ASIdentifierManager advertisingIdentifier property. An alphanumeric string unique to each device, used only for serving advertisements.

Unlike the identifierForVendor property of the UIDevice, the same value is returned to all vendors. This identifier may change—for example, if the user erases the device—so you should not cache it.

The value of this property may be nil if the app is running in the background, before the user has unlocked the device the first time after the device has been restarted. If the value is nil, wait and get the value again later.

MAC_ADDRESSConstant 
public static const MAC_ADDRESS:String = macaddress

Currently unimplemented and will be removed as iOS no longer supports retrieval of the MAC address.

SERVICEConstant 
public static const SERVICE:String = service

Uses a OS provided service to generate the identifier.

Note: This identifier is retrieved asynchronously so the value returned from uniqueId will be cached and may be out of date.

VENDORConstant 
public static const VENDOR:String = vendor

Android

On Android this is the value of the ANDROID_ID.

iOS

On iOS this is the value of the UIDevice identifierForVendor property.

The value of this property is the same for apps that come from the same vendor running on the same device. A different value is returned for apps on the same device that come from different vendors, and for apps on different devices regardless of vendor.

The value of this property may be nil if the app is running in the background, before the user has unlocked the device the first time after the device has been restarted. If the value is nil, wait and get the value again later.

The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. Therefore, if your app stores the value of this property anywhere, you should gracefully handle situations where the identifier changes.