OGeek|极客世界-中国程序员成长平台

标题: android - Titanium.Platform.id 包含 Android 和 iOS 的 UUID 或 UDID? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 12:51
标题: android - Titanium.Platform.id 包含 Android 和 iOS 的 UUID 或 UDID?

根据 appcelerator 的文档:

Titanium.Platform.id : StringREADONLY
Applications's globally-unique ID (UUID).

On Android, this may be the UDID (unique device ID). For iOS, this is a unique identifier for this install of the application.

Previously on iOS this may have been a UDID, but access to this has been restricted by Apple.

在 Android 上它是否返回 UDID 或任何其他唯一标识符,因为文档说它可能是 UDID。

除了 iOS 唯一可用的 UUID,它是否与以下 CFUUID、NSUUID 或供应商标识符中的任何一个相同。



Best Answer-推荐答案


对于 Android Ti.Platform.id 使用 TiPlatformHelper.getInstance().getMobileId() 它继承自封闭源代码 APSAnalyticsHelper 帮助程序用于 Appcelerator 分析。我无法分享源代码,但它基本上是我们生成并存储在持久性 sqlite 数据库中的 UUID。

对于 iOS,它使用 TiUtils.appIdentifier这基本上做同样的事情。

所以,回答您的问题:两者都使用生成并持久存储的 UUID。只是 UUID 的格式在两个平台上有所不同。

关于android - Titanium.Platform.id 包含 Android 和 iOS 的 UUID 或 UDID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35084829/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4