我正在使用主要在平板电脑上运行的Adobe Flash(AS3)开发应用程序。 我希望用户付费。所以他们必须激活他们的应用程序。 为此,我考虑提供使用univoque设备标识符(UDID)构建的激活码 因此,客户向我提供了他的UDID,我返回的激活码仅适用于他的设备。 我的问题是(我到处搜索)...如何使用AS3获取UDID? 或者,你是否建议一个不同的approch来实现我的目标?
非常感谢!
丹尼尔
答案 0 :(得分:0)
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.