Get Unique Device ID (UDID) under Windows Phone 8

后端 未结 9 729
抹茶落季
抹茶落季 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: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);
    

提交回复
热议问题