locked
GetDeviceUniqueID RRS feed

  • Question

  • User1702112636 posted

    Hi,


    I'm new in windows mobile platform and I would want to know if is possible to call GetDeviceUniqueID from web code.

    If it could be, I suppose that is necessary import a library, but wich it is?

    Is also possible do it with javascript?


    Thank you very much,

    SBC

    Tuesday, November 16, 2010 9:11 AM

Answers

  • User1943143334 posted

    Hi,

    One idea if you want the unique id per session, then you can get it through the following code,

    string strID = Session.SessionID;

    The above code fetches the Unique id per session. Check the following link for more information.

    http://wiki.asp.net/page.aspx/1229/maintaining-the-session-id-through-out-the-session/

    if you want to identify the device with unique id, i think it may not be possible in case of WiFi with out SIM card.

    Hope it helps u...


     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 18, 2010 10:06 AM

All replies

  • User1943143334 posted

    Hi,

    Try the following code,

    string strID = Request.ServerVariables.Get("MSISDN");
    
     
    and also,
    Request.ServerVariables.Get("HTTP_X_MSISDN");
    Request.ServerVariables.Get("HTTP_X_FH_MSISDN");
    Request.ServerVariables.Get("HTTP_MSISDN");
    Request.ServerVariables.Get("User-Identity-Forward-msisdn");
    Request.ServerVariables.Get("X-MSISDN");

    Hope it helps u...


     

    Tuesday, November 16, 2010 10:39 AM
  • User1702112636 posted

    Hi,

    Thank you for answer.

    I have understood that is not the same MSISDN, which is a number identifying a subscription in GSM or UMTS network, and GetDeviceUniqueID (http://msdn.microsoft.com/en-us/library/aa908781.aspx)

    I don't know which way to identify a device is better, but I've readen that the last is more used for lastest windows mobile versions (5, 6, 6.5....). Am I right?


    Thanks,

    SBC

    Tuesday, November 16, 2010 11:05 AM
  • User1943143334 posted

    Hi,

    Yeah, Windows Mobile versions are 5.0,6.0,6.5 and now Windows Phone 7.

    Through web browser , i mean through web application it is not possible to get the DeviceUniqueID(which can be retrieved through API's in thick client application).

    Are you developing a web application for Windows Mobile only or generic web app, which will be viewed in all browsers?

    Check the following link of Browser Capabilities you can retrieve from the Web Browser.

    http://www.on-the-matrix.com/webtools/HttpBrowserCapabilities.aspx

    Hope it helps u... 

    Tuesday, November 16, 2010 10:19 PM
  • User1702112636 posted

    Hi,


    Then, the way to identify a device through web application is with:

    string strID = Request.ServerVariables.Get("MSISDN");

    But, if I am right, this code means that MSISDN is gottten by server? Does a device always return the same MSISDN? 

    Is this a good method to identify devices in a network?


    Thank you,

    SBC

    Wednesday, November 17, 2010 5:40 AM
  • User1943143334 posted

    Hi,

    It is just retrieving the Mobile no. So if the user changes the SIM, then again it may vary.

    Actually it is not possible to retrieve the UNIQUE ID of a mobile device.

    check the following links, for more information.

    http://forums.asp.net/t/1349110.aspx

    http://www.mcse.ms/showthread.php?t=897514

     

    Hope it helps u... 

    Wednesday, November 17, 2010 10:31 AM
  • User1702112636 posted

    Hi roopeshreddy,


    I've been thinking about MSISDN parameter and I have a doubt.

    What about if the device is connected to WiFi? Is there any or another way to identify a device connected to WiFi? (not by IP address I consider)


    Thank you very much,

    SBC

    Thursday, November 18, 2010 9:37 AM
  • User1943143334 posted

    Hi,

    One idea if you want the unique id per session, then you can get it through the following code,

    string strID = Session.SessionID;

    The above code fetches the Unique id per session. Check the following link for more information.

    http://wiki.asp.net/page.aspx/1229/maintaining-the-session-id-through-out-the-session/

    if you want to identify the device with unique id, i think it may not be possible in case of WiFi with out SIM card.

    Hope it helps u...


     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 18, 2010 10:06 AM
  • User1702112636 posted

    Hi,


    I think that GetDeviceUniqueID is the best way to identify a device, and I would want to know if is possible to create an ActiveX Control to invoke this method.

    I've read that Internet Explorer Mobile 6 can run ActiveX Controls (http://msdn.microsoft.com/en-us/library/dd938878.aspx)


    Thanks,

    SBC

    Tuesday, December 14, 2010 6:35 AM
  • User-525215917 posted

    To secure mobile internet users operators in old times did their best to make device not to give out it's unique ID and number. I am sure that also today they don't want user to be in danger when surfing the web. You should try to find better solution than using unique ID of device when you are building mobile web application.

    Tuesday, December 14, 2010 6:40 AM
  • User1702112636 posted

    But it would be possible?

    The application will not be public, and ActiveX Control will be signed...


    Thanks,

    SBC

    Tuesday, December 14, 2010 6:50 AM
  • User-525215917 posted

    Seems like maintenance and support headache to me. I would vote for simpler solution that are more common and less bound to devices. It is easier for everybody - users and administrators.

    Wednesday, December 15, 2010 1:19 AM