In an 8.1 Universal app, is there an equivalent to:
if (Microsoft.Devices.Environment.DeviceType == DeviceType.Emulator)
{
// Emulator-specific code
}
I've looked and can't find a similar API.
You could try something like this:
Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation deviceInfo = new Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation();
deviceInfo
should give you info about SystemManufacturer
("Microsoft") & SystemProductName
("Virtual").
EDIT: I wrote a blog post about this problem.
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