locked
Get the Device information in Windows 8 using Javascript

    Question

  • Hi,

    Is it possible to get the device info- OS, Version, a unique id in a Win 8 app using Javascript? I need this info to be stored in the server side. Or get the user identity. There is no point in getting the IP or MAC address since it is likely to change.

    Wednesday, October 3, 2012 7:11 AM

All replies

  • You can use the DeviceInformation class and/or the DeviceInformation.Properties .

    You can also retrieve additional device properties information .

    This might also help: Its the Windows.System.Profile namespace . A note about the Windows.System.Profile namespace is that it's ID's are based on the current hardware. But what about if the user decides to change the hardware. So you have to put that in mind.

    Hope this helps.

    • Proposed as answer by phil_ke Thursday, October 4, 2012 10:49 AM
    • Marked as answer by Song Tian Friday, November 9, 2012 6:40 AM
    • Unmarked as answer by Neena IS Wednesday, January 30, 2013 10:45 AM
    Wednesday, October 3, 2012 8:54 AM
  • Thanks for the answer. But my requirement is: I am creating a Windows 8 app which can be installed in multiple devices, I want to get the device information where the app is installed.

    Say, if my app is installed on a Win 8 tablet/laptop I have to get the unique identity + Device information for the Tab/Laptop i.e. Device OS/Version/A unique id.

    Wednesday, October 3, 2012 9:45 AM