Skip to content
Get unique device id for iOS, iOS Simulator and Android platform.
ActionScript
Branch: master
Clone or download
Latest commit 760dda6 Jan 27, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea initial commit Jan 27, 2016
example initial commit Jan 27, 2016
fla initial commit Jan 27, 2016
libs initial commit Jan 27, 2016
.gitignore
LICENSE Initial commit Jan 27, 2016
README.md Update README.md Jan 27, 2016

README.md

FPUniqueId

Get unique device id for iOS, iOS Simulator and Android platform.

ExtensionID

<extensions>
    <extensionID>ru.flashpress.FPUniqueId</extensionID>
</extensions>

Descriptor

For android:

<android>
    <manifestAdditions><![CDATA[
        <manifest android:installLocation="auto">
            <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
            <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
            <uses-permission android:name="android.permission.BLUETOOTH"/>
        </manifest>]]>
    </manifestAdditions>
</android>

Example

import ru.flashpress.uid.FPUniqueId;
//
trace('identifier: '+FPUniqueId.id);
trace('wifiMac: '+FPUniqueId.wifiMac);
//
switch (FPUniqueId.platform) {
    // iOS platform
    case 1:
        trace('keychainId: '+FPUniqueId.keychainId);
        break;
    //
    // Android platform
    case 2:
        trace('imei: '+FPUniqueId.imei);
        trace('phoneNumber: '+FPUniqueId.phoneNumber);
        trace('simSerialNumber: '+FPUniqueId.simSerialNumber);
        trace('bluetoothId: '+FPUniqueId.bluetoothId);
        break;
}
You can’t perform that action at this time.