问题描述
如何通过 HTML 网站了解手机的IMEI
How can I know the IMEI of the mobile,
不使用PhoneGap?
Without using PhoneGap?
推荐答案
在手机中,只有原生应用可以访问IMEI号码,而不是网络应用。因此,如果浏览器具有足够的权限但是该信息不会提供给页面,则可能具有访问权限。这是故意的,因为网站所有者可以通过跟踪和广告来实现许多功能。
In a phone, only native app can have access to the IMEI number, not web apps. So the browser may have access if it has enough permissions but this information is not provided to the page. This is intentional because many things can be achieved by the site owner like tracking and for ads.
因此,如果您真的想拥有IMEI,则需要创建一个本机应用程序(如PhoneGap,你说不),并获得权限。如果您的目的只是跟踪您网站中的用户,则可以在Cookie中为他/她分配唯一ID。
So, if you really want to have the IMEI, you would need to create a native app (like PhoneGap which you have said no to) and get permissions. If your intention is just to track the user in your site, you can assign a unique id for him/her in a cookie.
这篇关于IMEI在HTML网站上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!