问题描述
寻求您的帮助
我在获取设备标识符时遇到问题.实际上我正在使用 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 设备的唯一标识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!