检索IMEI号/ SIM卡号码/手机,通过手机浏览器数量 [英] Retrieve IMEI number/ sim number/mobile number via mobile browser

查看:378
本文介绍了检索IMEI号/ SIM卡号码/手机,通过手机浏览器数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是该方案: 我通过手机浏览器访问的Web应用程序。 我需要检测移动设备的IMEI和SIM IMSI每当用户点击链接在我的应用程序页面通过Web浏览器访问。这是为了用相同的SIM跟踪同一设备和提供他/访问她的下一级。用户不能使用登录ID,因为没有用户登录那种在我的网页选项跟踪。

Following is the scenario: I have an web application accessible via mobile browser. I need to detect a mobile device IMEI and sim IMSI whenever an user clicks on link in my app page accessible via web browser. This is to track the same device with same SIM and provide him/her next level of access. User cannot be tracked using loginid as there is no user login kind of option in my page.

现在的问题是如何获得唯一的设备ID / SIM卡ID通过手机浏览器针对特定的移动设备。 现在我专注于基于Android的移动设备。但目标是使通用的设备。

The question is how to get unique device id/sim id via mobile browser for a specific mobile device. For now I am focusing on android based mobile devices. But the target is to make it generic to devices.

焦点大部分的想法是,什么样的访问浏览器拥有手机及其应用程序?

Focus of most of the ideas is, what is the kind of access a browser has over the phone and its app?

  1. 从浏览器链路我们可以打开以下面的方式在本地的应用程序

  1. From a browser link we can open a local app in the following way:

<a href="productcateory://<productid>/<customerid>">Get Details</a> 

下面productcateory唯一标识一个本地应用程序,并调用它。但它的单向通信。如何找回从调用的点了一些响应和动态填充一些隐藏表单域。

here productcateory will uniquely identify a local app and invoke it. But its one way communication. How to get back some response from the point of invocation and populate some hidden form field dynamically.

  1. 通过网页脚本,我们可以在客户端计算机上本地存储一些数据,并在以后检索。但范围是有限的,这是没有办法连接到IMEI或IMSI号码。

  1. Via webpage scripts we can store some data locally at client machine and retrieve it later. but the scope is limited and it is no way connected to IMEI or IMSI number.

有没有办法让一个钩子移动浏览器的应用程序(还记得它像任何其他移动应用)从网页并获得我的网页通过脚本的ID信息?

Is there a way to get a hook to mobile browser app(remember it's like any other mobile application) from the webpage and get the id details via scripts in my page?

有没有办法,HTML5在这方面提供的任何选项?我知道有在HTML5的一个localStorage的标签和一个可以存储在客户端的位置ID和以后检索。但这仅限于相同的设备和相同的移动浏览器,也这是一个不同的解决方案,以获得IMEI / IMSI号码

Is there any option that html5 provides in this regard? I know there is a localstorage tag in HTML5 and one can store an id in the client location and retrieve it later. But this is limited to the same device and same mobile browser and also this is a different solution to get the imei/imsi number

让我知道,如果有不要求用户在设备上安装本地应用程序或浏览器插件的任何其他选择吗?

Let me know if there is any other option without asking user to installing a local app or browser plugin on the device?

〜inkriti

推荐答案

有关很好的原因,是Web浏览器来访问手机的IMEI和IMSI号码是不可能的,没有一些卑鄙的黑客的开发团队hadn'吨的预期。

For very good reasons it is impossible for the web browser to access the IMEI or IMSI numbers of a mobile phone, without some dastardly hacking that the dev teams hadn't expected.

另外,Android的浏览器不支持插件。

Also the android browser doesn't support plugins.

您唯一的选择是创建本机应用程序。这个答案有一些信息,这将是对你有用:获取Android SDK中电话号码。但它不是一个完美的解决方案。

Your only option is to create a native app. This answer has some info that will be useful to you: Get Phone Number in Android SDK. Its not a perfect solution however.

我还要问,为什么你要访问的用户的电话号码?如果它只是跟踪会话只使用JavaScript来生成一个唯一的ID,并将其存储在cookie中。

I would also ask why you want access to the users phone number? If its just to track session just use javascript to generate a unique id and store it in a cookie.

这篇关于检索IMEI号/ SIM卡号码/手机,通过手机浏览器数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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