GetDeviceName
Definition:
GetDeviceName()
Description:
Obtain the name of the device the Script is running on.
Platforms:
All (but see Notes below)
Parameters:
none
Returns:
String containing the name of the current device or an empty string, "", if no device name set.
Notes:
On iOS devices, due to changes introduced by Apple, this Method doesn't work on iOS 16 or above and will return an empty string if used on a device running these versions of the iOS operating system.
The name returned depends upon the type of device:
Device type
Name
Android device
The Bluetooth name given to the device.
iOS device (iOS 15 or below)
The Device Name as found under:
Settings → General → About → Name
Windows device
The fully qualified NetBIOS/Computer name.