[UWP]Device Information on Windows Universal Apps RRS feed

  • Question

  • Hi,

    I am trying to build Windows Universal using windows 10 SDK. 

    How can I get device related information on universal app like 

    1. Unique identification number for the device

    2. Device Name / Model Name (On windows runtime 8.1, this could be obtained using EasClientDeviceInformation.SystemSku)

    I tried using Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily but I can only determine the type of device the app is running on (like Windows.Mobile)



    Monday, June 8, 2015 10:59 AM

All replies

  • You can tap into AnalyticsInfo and AnalyticsVersionInfo to get the information, as noted on the documentation page (https://msdn.microsoft.com/en-us/library/windows/apps/windows.system.profile.analyticsinfo.aspx)

    If you want to get the HardwareIdentification information however you will need to look somewhere else as it is not part of the Universal Device Family, it's part of the Desktop and Mobile family (device family specific).

    To get this type of device-specific info available, you have to add the references to the device specific extensions.

    Anyways, The APIs that were used to gather these data have changed from 8.x to UWP. I have found one blog post <https://www.suchan.cz/2015/08/uwp-quick-tip-getting-device-os-and-app-info/> for someone who has created a helper class that retrieves the following properties for example from a Windows 10 UWP app

    In his post he shows how to get basic data about current device, operating system and application. hope it helps!


    Rami Sarieddine Technical Evangelist

    Sunday, December 6, 2015 1:14 PM