Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get unique ID of WP8

when trying to get imei number null exception occurs. when running in windows phone emulator.

//Please check this

        object uniqueId;
        var hexString = string.Empty;
        if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))
            hexString = BitConverter.ToString((byte[])uniqueId).Replace("-",     string.Empty);
        MessageBox.Show("myDeviceID:" + hexString);
like image 894
nayas_sub3431732 Avatar asked Dec 31 '25 14:12

nayas_sub3431732


1 Answers

I've had this issue with returning the null value.

In WMAppManifest.xml -> Capabilities tab -> switch on ID_CAP_IDENTITY_DEVICE
like image 58
Sajeetharan Avatar answered Jan 02 '26 04:01

Sajeetharan