简体   繁体   English

唯一标识多个用户的iOS设备

[英]Uniquely Identify iOS device over multiple users

I have done a lot of research on this so please read the question before marking this as similar to some other question. 我对此进行了大量研究,因此请在将该问题标记为与其他问题类似之前先阅读该问题。

Our app needs to uniquely determine an iPhone such that even when user completely wipes a phone, when he runs our app we can be sure that it is the same device. 我们的应用需要唯一地确定iPhone,以便即使用户完全擦拭手机,当他运行我们的应用时,我们也可以确保它是同一设备。 The most important thing is we also need to determine devices over multiple Apple ID users so suggestions containing Keychain access and uniqueVendorID might not work as those change when another user starts using that phone. 最重要的是,我们还需要确定多个Apple ID用户上的设备,以便包含Keychain访问和uniqueVendorID的建议可能不起作用,因为当另一个用户开始使用该手机时,这些建议会发生变化。 And as I have read using MAC addresses and old UDID for devices is not longer available as of iOS 6.0. 正如我所读的,使用设备的MAC地址和旧的UDID从iOS 6.0起不再可用。 I went through [UIDevice identifierForVendor] but this NSUUID changes when all the app by the same vendor has been uninstalled Reference . 我通过[的UIDevice identifierForVendor]去,但是当所有由同一供应商提供的应用程序已被卸载此NSUUID改变参考

I have looked through these resources: 我浏览了以下资源:

UIDevice uniqueIdentifier Deprecated - What To Do Now? 不推荐使用UIDevice uniqueIdentifier-现在要做什么?

and

What is a long-term method I can use to uniquely identify an iOS device? 我可以用来唯一标识iOS设备的长期方法是什么?

I can not disclose the nature of work that my app performs due to non-disclosure, but to clarify what I require: 由于保密性,我无法透露我的应用程序执行的工作性质,而是为了澄清我的要求:

Multiple users might use our app on same phones, I need a way to know that the device user A used before and has reported to have handed over to user B is the same device on which our app was run. 多个用户可能在同一部手机上使用我们的应用程序,我需要一种方法来知道用户A之前使用过的设备(据报告已移交给用户B)是运行我们应用程序的设备。 Is there any way to achieve this? 有什么办法可以做到这一点?

There's no way to achieve this. 没有办法实现这一目标。

If it's really the case that different users might use your app on the same device after a factory reset of the device, then what you want is not possible. 如果确实是在不同的用户将设备恢复出厂设置后,他们可能在同一设备上使用您的应用程序,那么您将无法实现所需的操作。 Apple deprecated UIDevice uniqueIdentifier which would have been the way to do this. 苹果不赞成使用UIDevice uniqueIdentifier来实现此目的。

只要他们不还原/清除设备identifierForVendor就可以

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM