3
votes

in my Silverlight Windows Phone 7/8 projects I always used these methods/classes to get informations about the user phone:

Microsoft.Phone.Info.DeviceStatus.DeviceFirmwareVersion;
System.Environment.OSVersion.Version;
Microsoft.Phone.Info.DeviceStatus.DeviceName;
Microsoft.Phone.Info.DeviceStatus.DeviceManufacturer;

But now in Windows Phone 8.1 runtime they are missing. Are there some alternatives? My app doesn't use networking. Thanks and sorry for bad english.

2
Seems like the properties are still available in WP 8.1. Did you double check? msdn.microsoft.com/en-us/library/windowsphone/develop/…Hoang Huynh
@HoangHuynh The link you have provided stays for WP8.1 Silverlight not Runtime, the OP is asking for.Romasz
Claus, did you find a solution?Ian Lee

2 Answers

1
votes

You can use the EasClientDeviceInformation class

e.g.

var deviceInfo = new EasClientDeviceInformation();
var manufacturer = deviceInfo.SystemManufacturer;
var name = deviceInfo.SystemProductName;
var firmwareVersion = deviceInfo.SystemFirmwareVersion;
var osVersion = "8.1"; // Only 8.1 so far. No os version method exists afaik in 8.1
0
votes

Universal/WinRT apps only work in wp 8.1, so the OS version can only be 8.1. When they make wp8.2 or wp9, they'll probably add a way to check what OS version is installed...

If you're looking for the firmware version, you can get it with:

Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation deviceInfo = new Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation();
var firmwareVersion = deviceInfo.SystemFirmwareVersion;