gpt4 book ai didi

ios - 使用 ionic 框架在iphone中获取唯一设备ID

转载 作者:行者123 更新时间:2023-12-01 18:07:40 25 4
gpt4 key购买 nike

正如我搜索过的一样。但是,我没有得到适当的解决方案,因为苹果从 iPhone 6 开始就弃用了这个唯一 ID。所以如何在 ionic 中获取 iPhone 的唯一 ID,这在重新安装应用程序时将保持不变。

最佳答案

无法获得唯一的设备 ID。

您可以自己生成它,然后将其存储在设备中。

或者您可以使用 UIDevice.currentDevice().identifierForVendor!.UUIDString ,即:

An alphanumeric string that uniquely identifies a device to the app’s vendor.



可以使用 KeyChain 在重新安装时保留此 ID。见 this topic .

关于ios - 使用 ionic 框架在iphone中获取唯一设备ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37967765/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com