【发布时间】:2020-08-03 19:52:51
【问题描述】:
A) 在 android 中,我可以获取 SIM 的详细信息,并且可以专门选择用于从该 SIM 发送 OTP 的 SIM。我有一个可以在 Android 中实现的示例屏幕。
https://developer.apple.com/forums/thread/9171此链接指出,由于 Apple 隐私政策,我们无法从设备获取 SIM 电话号码
如何在iOS中实现同屏?任何替代的想法或帮助表示赞赏
B) 如何获取唯一ID进行身份验证?
在 Android 中,我们可以获得(IMEI+SIM 序列号)可用于身份验证,但在 iOS 中,所有这些都因隐私而受到限制。相反,不可能获得每个设备唯一的 UDID。我知道我可以为此使用供应商 ID:
UIDevice.current.identifierForVendor!.uuidString
但正如文档所说:The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them.
由于当用户卸载应用程序时供应商 ID 会发生变化。那么,是否有任何方法可以获取除供应商 ID 之外的唯一 ID 用于身份验证,该 ID 不会更改并且始终是唯一的?
【问题讨论】:
-
a) 也许重新设计屏幕,让用户自己输入电话号码? b) 没有合法的方式来跟踪其唯一设备是否跨安装
-
@NeilGaliaskarov 你能把这个作为答案发布,这样我就可以投票了吗?感谢您的评论..请详细说明您的 b) 评论
标签: ios objective-c swift iphone xcode