Windows Phone Device Unique Id
Asked Answered
S

2

0

I have a windows phone 7 app which is live in store which is using DeviceExtendedProperties.GetValue("DeviceUniqueId") to fetch id and I am updating it in store with new windows phone 8 app and using same method.

In both cases I am getting different id? I want the id to be same in both the cases.

Staford answered 15/3, 2016 at 6:21 Comment(1)
Have you checked WMAppManifest.xml -> Capabilities tab -> switch on ID_CAP_IDENTITY_DEVICE ?Biestings
P
1

Per this blog post:

For Windows Phone 8 apps running on Windows Phone 8 devices and later, the DeviceUniqueId value is unique per device and per app publisher, which means that two apps published by different windows phone store account won’t get the same “device unique id”.

As there is a compatibility issue for Windows Phone 7.x apps, it may be the case that the phone essentially has an id for 7.x apps, and defers to a different logic to return a per publisher version for 8.x apps

Philine answered 15/3, 2016 at 9:55 Comment(1)
yes u might be correct. It gives different device id for windows phone 7 and windows phone 8 for the same app.Staford
B
0

Check this one:

byte[] id = (byte[])Microsoft.Phone.Info.
                DeviceExtendedProperties.GetValue("DeviceUniqueId");
string deviceID = Convert.ToBase64String(id);

Checked WMAppManifest.xml -> Capabilities tab -> switch on ID_CAP_IDENTITY_DEVICE

Biestings answered 15/3, 2016 at 6:50 Comment(3)
ID_CAP_IDENTITY_DEVICE is enabled.Issue is getting different id for win 7 app and win 8 appStaford
id is dependence on phone, so Are you using same phone to generate id ?Biestings
yes same phone but first time with windows 7 app and second time wid windows 8 app.Staford

© 2022 - 2024 — McMap. All rights reserved.