If you have lockdown on your devices, you can change the html template of the device to show the device id using Macro "%DeviceID%, if your application can retrieve the device id from lockdown mode, else using API would be the other way to retrieve the device id.
Please let us know, if that helps.
Kind Regards, Technical Support | SOTI Inc. |1.905.624.9828 | firstname.lastname@example.org | www.soti.net |
Hello, thank you for you anwser.
Have you got an example or a code sample to retrieve the device ID from lockdown mode ?
Also, can you tell me how / where MobiControl retrieves the device ID ? Is this information retrieved with the TelephonyManager Android library by using the getDeviceId() function ? I mean, if I use this library / function, will I get the right device ID (the one displayed in the management console) ?
Thank you !
Hello, Any update on this topic ? How MobiControl retrieve the deviceID on Android devices ?
Not sure I understand your request. Do you mean you have an application that is running on the device and it needs to obtain the MobiControl specific (and generated) deviceID?
"or do we have to use the API?"
To what API are you referring? The Android API on the device or the MobiControl REST API?
The native Android "getDeviceID" just returns the IMEI and is actually deprecated. MobiControl's "deviceID" has changed over time and varies depending on version and device. AE vs A+ also appear to be a factor. I have a server where A+ clients have a deviceID that is a combination of self generated numbers combined with device hardware serial number. Another server that has AE clients (same device type) shows the IMEI as the deviceID.
So, exactly what piece of information are you looking for and what are you trying to do with it?
Hello Scott, thank you for your detailed answer.
As requests to the MobiControl API use the device ID to identify the device, I just wanted to retrieve this device ID on the device in order to be able to execute calls to the MobiControl API.