keoaudam
keoaudam

Reputation: 73

get Windows Phone 7.1 Device ID

We implement the PUSH NOTIFICATION on Windows Phone 7.1 and we need to register the link to server to be able to push. and we also support for update the link in case where the apps is uninstall and re-install. new link will be saved to server for the same device. So we try to get the device ID of the device to identify and update the link instead of saving a new one for the same device.

Since

DeviceExtendedProperties.TryGetValue("DeviceUniqueID", out uniqueID)

is not allowed for Windows Phone 7.1. Is there any other solution to get a unique ID for a device ?

we can't use account live to identify the phone since a user can use many device using only one live account.

Upvotes: 3

Views: 3458

Answers (2)

nikhilf
nikhilf

Reputation: 71

Use "DeviceUniqueId" instead of "DeviceUniqueID".

Upvotes: 1

abhinav
abhinav

Reputation: 3217

You can get the DeviceID. You need to include this in your WMAppManifest.xml <Capability Name="ID_CAP_IDENTITY_DEVICE" />

See this

Upvotes: 4

Related Questions