I know in Windows Phone 7, it is impossible to get the IMSI and IMEI.
Is there a way to get IMSI and IMEI in Windows Phone 8?
There is no way to get IMSI and IMEI number, however you can use the device unique Id.
Use the following code snippet to get the device unique id.
Namespace is
using Microsoft.Phone.Info;
object uniqueId;
var hexString = string.Empty;
if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))
hexString = BitConverter.ToString((byte[])uniqueId).Replace("-", string.Empty);
MessageBox.Show("myDeviceID:" + hexString);
Hope it helps
You can also use this property
Windows.Phone.System.Analytics.HostInformation.PublisherHostId
If you use this property in your app, you must specify ID_CAP_IDENTITY_DEVICE capability in the app manifest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With