开发者

Retrieve IMEI number/ sim number/mobile number via mobile browser

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.

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. From a browser link we can open a local app in the following way:

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

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. 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.

  2. 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?

  3. 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 i开发者_高级运维t 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


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.

Also the android browser doesn't support plugins.

Your only option is to create a native app. This answer has some info that will be useful to you: Programmatically obtain the phone number of the Android phone. Its not a perfect solution however.

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.


The original issue is probably closed, however for future reference of anyone (like myself) that comes across this question would be something like 2-factor registration with confirmation via text. The closest to getting an IMEI (impossible without native apps) would be to get the user to register and include a text confirmation - the mobile phone number in most cases will be unique, only non-unique when changing devices, and some assumptions can be made from the client-side to guess what device they have, you could even go a step further and ask them to identify the make/os of their device if you were that concerned about unique-ness. However in most use-cases a mobile number confirmation will do the job


The only reliable way is to write an app and have it send a SMS and then track the number on that end; assuming the subscriber has SMS/text service enabled. This won't work on non-phones (tablets).

It is not important, nor is it necessary and it is probably illegal to track the device (IMEI); simply track the subscriber.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜