Windows Phone 8.1 Device Unique id

Total Post:88


 3412  View(s)
Rate this:
How to get the device unique id in Windows Phone 8.1?? The old way of using DeviceExtendedProperties.GetValue("DeviceUniqueId") not works for Windows Universal app.
  1. Re: Windows Phone 8.1 Device Unique id

    This may help:

    private string GetDeviceID()
                HardwareToken token = HardwareIdentification.GetPackageSpecificToken(null);
                IBuffer hardwareId = token.Id;
                HashAlgorithmProvider hasher = HashAlgorithmProvider.OpenAlgorithm("MD5");
                IBuffer hashed = hasher.HashData(hardwareId);
                string hashedString = CryptographicBuffer.EncodeToHexString(hashed);
                return hashedString;


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.