Get Unique Device ID (UDID) under Windows Phone 8

后端 未结 9 716
抹茶落季
抹茶落季 2020-12-04 15:23

Is there any unique device ID (UDID) or any similar ID I can read out on Windows Phone 8 (WP8) that doesn\'t change with hardware changes, app-reinstallation etc.?

I

相关标签:
9条回答
  • 2020-12-04 16:11

    I found this a new HostInformation.PublisherHostId property More info at http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.phone.system.analytics.hostinformation.publisherhostid.aspx..

    0 讨论(0)
  • 2020-12-04 16:13
    string myDeviceID = (byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId");
    string DeviceIDAsString = Convert.ToBase64String(myDeviceID);
    

    I have used this for windows phone unique device Id.

    0 讨论(0)
  • 2020-12-04 16:15

    You can get your own wp8 device Id by DeviceExtendedProperties.GetValue("DeviceUniqueId") Here is the simple way to get deviceId as a string

    byte[] id = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId");
     string   deviceID = Convert.ToBase64String(id);
    
    0 讨论(0)
提交回复
热议问题