在移动 Safari 上使用 javascript 从 Iphone 读取 UDID

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2072240/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-22 22:39:46  来源:igfitidea点击:

Read UDID from Iphone with javascript on mobile safari

javascriptiphoneobjective-c

提问by onur taskin

How can I Read UDID from Iphone with javascript on mobile safari?

如何在移动 Safari 上使用 javascript 从 Iphone 读取 UDID?

回答by vk.edward.li

Update 2:

更新 2:

Since the site below is dead already, this discussion thread in apple.com's forum has the diagnosis and source code on how did that site retrieve the UDID thru mobileconfig.

由于下面的站点已经死了,apple.com 论坛中的这个讨论主题包含有关该站点如何通过 mobileconfig 检索 UDID 的诊断和源代码。

https://discussions.apple.com/thread/3089948?start=0&tstart=0

https://discussions.apple.com/thread/3089948?start=0&tstart=0



Update: the site mentioned in this answer is no longer on-line; it's now just a placeholder full of ads. Leaving original message below for reference.

更新:这个答案中提到的网站不再在线;它现在只是一个充满广告的占位符。在下面留下原始消息以供参考。



Open http://whatismyudid.com/in your iOS device

在您的 iOS 设备中打开http://whatismyudid.com/

it is possible through mobileconfig (Over-the-Air Profile Delivery and Configuration)

可以通过 mobileconfig(无线配置文件交付和配置

http://whatismyudid.com/device/start<- download their mobileconfig and take a look

http://whatismyudid.com/device/start<- 下载他们的 mobileconfig 并查看

回答by SLaks

It's not possible, and it never will be, unless the user explicitly installs policy configurations.

这是不可能的,也永远不会,除非用户明确安装策略配置。

回答by Damien Romito

More simple, go on this url and get your UDID http://www.easy-udid.com

更简单,访问这个 url 并获取您的 UDID http://www.easy-udid.com

回答by youssman

I know it's an old post, but I just want to share an implementation of @powerj1984's solutionin php and ready to use that I found here :

我知道这是一篇旧帖子,但我只想在 php 中分享@powerj1984 解决方案的实现,并准备使用我在这里找到的:

https://github.com/hunk/get-UDID

https://github.com/hunk/get-UDID

It worked for me.

它对我有用。

As I said it's an implementation, refer to @powerj1984's solutionfor detailed explanation.

正如我所说,这是一个实现,请参阅@powerj1984 的解决方案以获取详细说明。

Hope it will helps someone.

希望它会帮助某人。