Get(Set) DeviceName on Andoird OS

P Patrick Kirsch 3 years 7 months ago
46 1 0

Good day everyone,

currently, I'm struggling with getting a proper device name from out TC56/51 or any other Android Zebra Device.
I'm using the System.Environment.MachineName Property within our Xamarin Forms app but it always gives me "localhost" as Value, and I don't see any way to change it. Did anyone also come across this problem? Or is there a better solution to it? What need is a Name variable of the device, that can be set to a specific name/string.

maybe someone could help me here
greetings
Patrick

Please Register or Login to post a reply

1 Replies

A Alan rechdan

Try this:  Xamarin.Essentials.DeviceInfo.Name

CONTACT
Can’t find what you’re looking for?