Adobe Flash App -- Unique Device ID

436 views Asked by At

I'm developing an application using Adobe Flash (AS3) which runs mainly on tablets. I would like users to pay. So they have to activate their application. To do this I thought about providing an activation Code that is built using a univoque Device Identifier (UDID) So, the customer provides me his UDID and I return the activation code which works only on his device. My problem is (I searched everywhere)... how can I obtain an UDID using AS3? Or also, do you suggest a different approch to reach my goal?

Thank you very much!

Daniele

1

There are 1 answers

0
Namit Sinha On

There is no single correct solution to what you are asking , It depends entirely on your needs and kind of app you are publishing.

createUID() function in mx.utils package Generates a UID (unique identifier) based on ActionScript's pseudo-random number generator and the current time.

But that may not help you as this ID is not machine dependent , user can simply publish his UID and your authentication key . User may need to install the app in other of his devices, user may accidentally delete the file which will delete the originally generated UID too.

A 64-bit number (as a hex string) is randomly generated when the user first sets up the device and remains constant for the lifetime of the user's device. The value may change if a factory reset is performed on the device.This is accessible using java by constant ANDROID_ID there is no library in ActionScript-3 to access this . But you can use this ane to get it.

Or You can use a sign in from facebook using this ane or google+ and use the customers unique id from there , but it would require him to give your app permissions to view some basic information.