IMEI in HTML website

半世苍凉 提交于 2019-12-29 09:32:04

问题


How can I know the IMEI of the mobile,

via an HTML site

Without using PhoneGap?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/14139390/imei-in-html-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!