适用于iOS 7.0及更高版本的iOS设备的唯一标识 [英] Unique Identification of iOS device for iOS 7.0 and above
问题描述
寻求帮助
我在获取设备标识符时遇到问题。实际上我使用UIDevice + IdentifierAddition.h,NSString + MD5Addition.h类获取标识符,但其返回所有设备的相同标识符,即 iPhone 4s(iOS 7.1)& iPhone 5(iOS 7.1.1)。
I am facing a problem while getting Device Identifier. Actually I am using a UIDevice+IdentifierAddition.h, NSString+MD5Addition.h classes to get Identifier, but its return same identifier for all my devices i.e. iPhone 4s (iOS 7.1) & iPhone 5 (iOS 7.1.1).
任何人都可以解决此问题。因为我想要一些特定于设备的东西。我的应用程序要求。
Can any one have any solution for this problem. because I want a something unique for device specific. its my app requirement.
重要提示:我想在应用程序商店提交此应用程序,所以请按照指南回答
推荐答案
从iOS 7开始,不再可能获得任何唯一的设备标识符。
Since iOS 7 it is no longer possible to get any unique device identifiers.
您的选择是:
- create your own unique ID and save it in the keychain.
- use the vendor ID, which will be reset if all the app by the same vendor are removed from the device.
这篇关于适用于iOS 7.0及更高版本的iOS设备的唯一标识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!