存储信息并唯一地识别移动设备,在空气跨平台一地、空气、设备、平台

2023-09-08 14:15:42 作者:吃芥末的猫-gentle.*

我需要有对每个移动设备,其被发送到服务器中的所有请求一个标识符。 安全不是一个大问题,在这里(我们不希望用户必须先登录)。由于没有拒绝任何违反条款的应用,然而。

I need to have a identifier for each mobile device, which is sent to the server in all requests. Security is not a big issue here (we don't want the user to have to login). Not having the application rejected for any breach of terms, is however.

我最初看 HTTPS://$c$c.google。 COM / P / ActionScript的UUID / 它看起来像这将是很好,容易实现:

I was initially looking at https://code.google.com/p/actionscript-uuid/ which looks like it would be nice and easy to implement:

import com.laiyonghao.Uuid;

var uuid:Uuid = new Uuid();
trace(uuid);

有一个安装相关的ID,而不是设备特定ID不会是一个巨大的问题,不同之处在于,我们将做的应用,这就需要我们有相同的UID的2版本。

Having an install related id, rather than a device specific id would not be a massive problem apart from the fact that we are going to be doing a version 2 of the application, which we need to have the same uid.

会不会有节省使用共享对象的android / ios的状态信息的任何问题?

如果一个应用程序的更新将仍然能够访问同一个共享对象?

我相信,苹果现在将拒绝其尝试使用MAC地址的任何应用程序。

I believe that apple will now reject any apps which attempt to use the MAC address.

我发现openudid:

I found openudid:

http://blog.appsfire.com/with-udid-nearing-its-demise-leading-industry-players-turn-to-openudid/

https://github.com/ylechelle/OpenUDID

我还没有看到原生扩展写入使用这种虽然。具有唯一标识特定设备的,而不是安装特定的preferential只要不是太费时。

I haven't seen a native extension written which uses this though. Having the unique identifier device specific rather than install specific is preferential as long as it's not too time consuming.

是否有可用的一个原生扩展,它允许访问的特定设备的唯一标识符,它的工作原理跨平台?

我发现了以下问题颇为相似 AIR 3.5的移动项目的设备ID

I found the following question which is quite similar AIR 3.5 Mobile project device ID

另一种思想,我有就是我们将要使用我们的应用程序,它可以为我们提供了一个很好的标识符推送通知,会发生什么,如果推通知被禁用,虽然我不知道。

Another thought I have had is we are going to be using push notifications in our application which may provide us with a nice identifier, what will happen if push notifications are disabled though I'm not sure.

推荐答案

。它是由机器人时产生的装置被首次引导的唯一标识符。它可能会改变在某些情况下,但通常是最好的唯一的ID。

On Android you should be using the ANDROID_ID property. It's a unique identifier generated by android when the device is first booted. It may change under certain circumstances but generally is the best unique id.

http://developer.android.com/reference/android/供应商/ Settings.Secure.html

在iOS的你有2个选项,广告标识符和供应商的标识。

Under iOS you have 2 options, an advertising identifier and a vendor identifier.

厂商识别码是唯一的,但来自同一个开发者的应用程序之间是相同的。而identifierForAdvertising是唯一的设备被用于广告相关调用

The vendor identifier is unique but identical between apps from the same developer. Whereas the identifierForAdvertising is unique to the device to be used for advertising related calls.

https://developer.apple.com/library/ios/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html

所有这些都可以通过在distriqt ANE包本机扩展:

All of these are available through a native extension in the distriqt ANE package:

http://distriqt.com/native-extensions

在特定的应用程序扩展名:

In particular the Application extension:

http://extensions.distriqt.com/docs/application/docs/