Hello all,
I want to get Android Device Udid programmatically and send it to the AirWatch API to see if the device exists or no.
But the problem is when the Udid I get programmatically is different from AirWatch Udid;
I used the following Java (Android Studio) code to get Udid:
Secure.getString(getContentResolver(), Secure.ANDROID_ID);
Does anyone have a solution for this;
Thank you in advance;
Why no answer here? In my life, I have never seen Worst community/forum like this.
The UDID is going to be generated uniquely each time it is generated on the device, if I'm not mistaken. I would not expect to be able to generate a matching UDID ever. I'm pretty sure the Hub generates the UDID once and then stores it.
A better solution would be to query the console via API for the IMEI, Serial Number, or MAC Address. Those are all things you can request from the device which will be the same as on the console.