windows-phone-8device-name

API to get the friendly name of your Windows Phone 8 device?


Is there a way to get the name of your phone? The name you see in Windows Explorer properties as the device name?

I have looked at Microsoft.Phone.Info.DeviceStatus.DeviceName but that appears to be different. I have looked at DeviceExtendedProperties but that is mostly deprecated now.

The phone prompts you for this name during setup. I can also see this name and change it in the WinRT App for WP8 preferences. But I'm not seeing a way to get it by API.

(I would like this name so that I can pass it on to a web service that shows a device list)


Solution

  • There's no public WP8 API to retrieve the user friendly Device Name. If you're looking to uniquely identify the phone's use ANID2.