我可以通过带有js web应用程序的Safari检索ipad唯一设备标识符吗? [英] Can I retrieve an ipad unique device identifier that through Safari with a js web app?

查看:134
本文介绍了我可以通过带有js web应用程序的Safari检索ipad唯一设备标识符吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个在Windows Server上运行的应用程序,可以通过Safari中的IPads访问。 Web部分是用javascript编写的。

We have an application running on a Windows Server and being accessed by IPads from Safari. The web part is written in javascript.

我们希望将用户首选项存储在服务器中,但缺少可通过我们从ipad设备检索的识别号码网页代码,以便在不同的文件夹下存储不同的ipad设置。我们还没有实现用户配置文件。

We would like to store user preferences in the server, but are lacking an identifying number that we can retrieve from the ipad device through our web code, so as to store different ipad's settings under different folders. We have still not implemented user profiles.

我一直在阅读有关UDID的一些内容,但还没有找到用javascript检索此数字的方法。可能吗?我们可以为此目的使用任何其他设备编号或ID吗?

I've been doing some reading about the UDID and haven't found a way to retrieve this number with javascript. Is it possible? Is there any other device number or kind of ID that we could use for this purpose?

谢谢!

推荐答案

我认为这是一个非常糟糕的主意(tm)。

I would think this is a very bad idea(tm).

相反,为什么不做别人做的事情呢?将您自己生成的ID存储在一个几乎永不过期的cookie中?

Instead, why not just do what everyone else does and store your own generated ID in a cookie that pretty much never expires?

这篇关于我可以通过带有js web应用程序的Safari检索ipad唯一设备标识符吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆