唯一识别每个设备,访问sencha web应用程序
我正在为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要将 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
如果这是在浏览器中运行的网络应用程序,则无法获取该信息。在 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?