如何获得 iphone 的唯一标识号
How to get unique identifiacation number of iphone
我想获得 iphone.currently 的唯一 ID 我正在使用 Display.getInstance().getUdid();
,但每次我在 iphone 上安装应用程序时它都会提供不同的唯一 ID。
能否请教一下如何解决?
调用此函数即可获取:
UIDevice.currentDevice().identifierForVendor
由于苹果修改了安全策略,您无法再获得每个设备的唯一 ID。 identifierForVendor
是您可以选择的最佳选择。
你可以试试
UIDevice *device = [UIDevice currentDevice];
NSString *currentDeviceId = [[device identifierForVendor]UUIDString];
getUDID()
returns 由于 Apple 的限制,无法唯一化的假号码。
我想获得 iphone.currently 的唯一 ID 我正在使用 Display.getInstance().getUdid();
,但每次我在 iphone 上安装应用程序时它都会提供不同的唯一 ID。
能否请教一下如何解决?
调用此函数即可获取:
UIDevice.currentDevice().identifierForVendor
由于苹果修改了安全策略,您无法再获得每个设备的唯一 ID。 identifierForVendor
是您可以选择的最佳选择。
你可以试试
UIDevice *device = [UIDevice currentDevice];
NSString *currentDeviceId = [[device identifierForVendor]UUIDString];
getUDID()
returns 由于 Apple 的限制,无法唯一化的假号码。