唯一识别每个设备,访问sencha web应用程序

发布于 2024-12-25 05:20:08 字数 222 浏览 3 评论 0原文

我正在为 iPhone 和 Android 开发基于 sencha 的应用程序。安卓。作为软件要求,我需要识别访问服务的设备(基于 IMEI 或 MAC 地址)。 例如,如果 iPhone 用户第一次访问我的 sencha-web-app,他将需要注册。如果他再次访问,应用程序将检测并跳过注册过程。

问:如何使用 sencha 获取设备的 IMEI 或 MAC,以唯一识别它?

I am developing a sencha based application for iPhone & Android. As a S/W requirement, i need to identify device (on the basis of IMEI or MAC address) accessing the service.
e.g. If a user of iPhone visits my sencha-web-app first time, he will need to register. And if he visits again, Application will detect and registration process will be skipped.

Q: How can i get IMEI or MAC of device using sencha, to identify it uniquely?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

枕头说它不想醒 2025-01-01 05:20:08

您需要将 Sencha 应用程序包装在本机包装器中。我建议使用 PhoneGap,它们有一个很好的 UUID 属性,如下所示: http://docs.phonegap.com/en/1.3.0/phonegap_device_device.md.html#device.uuid

You will need to wrap your Sencha application in a native wrapper. I recommend using PhoneGap, they have a nice UUID property as documented here: http://docs.phonegap.com/en/1.3.0/phonegap_device_device.md.html#device.uuid

甚是思念 2025-01-01 05:20:08

如果这是在浏览器中运行的网络应用程序,则无法获取该信息。在 iOS 上,IMEI 实际上是您无论如何都无法访问的受限信息。如果您只是想记住用户,标准方法就是使用 cookie。您想要将其与硬件标识符绑定而不使用 cookie 是否有特殊原因?

If this is a web app running in the browser there is no way to get that information. On iOS, the IMEI is actually restricted information that you can't access anyway. If you simply want to remember users, the standard way would be to just use a cookie. Is there a particular reason you want to tie this to a hardware identifier and not use a cookie?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文