未经许可将 UUID 发送到服务器(用于分析)

Sending UUID to server without asking permission (for analytics)

我的 Swift 应用程序使用以下代码生成唯一字符串:

UIDevice.currentDevice().identifierForVendor.UUIDString

出于分析目的,当用户按下应用内的特定按钮时,我们的应用会使用此 UUID 向我们的服务器发送 PUT 请求。这基本上允许我们创建一个 table 匿名信息用于分析目的。我们没有具体关于用户的信息,只有一个随机字符串来标识设备(我认为是每个应用程序的基础)。

我的问题是,我们是否可以在未经用户许可的情况下这样做?我知道在发送匿名使用数据之前先询问是合乎道德的,但 Apple 是否会限制您这样做(如将拒绝应用程序)?

我问这个问题的原因是因为使用信息对我们特别有用,我们不想在如此基本的情况下向用户询问这些数据来吓唬他们。

没有。 Apple 不会拒绝未经用户许可收集此信息的应用程序。 这是因为 Apple 采取了适当的措施来确保您不会仅通过收集设备 ID 来永久标记用户的设备。

我发现此文档很有帮助,我相信您一定已经阅读过。

The value of this property is the same for apps that come from the same vendor running on the same device. A different value is returned for apps on the same device that come from different vendors, and for apps on different devices regardless of vendor.

如果您想将其用于广告,请阅读这篇文章。

When implementing a system for serving advertisements, use the value in the advertisingIdentifier property of the ASIdentifierManager class instead of this property. Use of that property requires you to follow the guidelines set forth in the class discussion for the proper use of that identifier. For more information, see ASIdentifierManager Class Reference.