Getting iPad or Android device MAC address doesn't work (works in AIR Desktop)
I'm trying to get the MAC address of the user's device in Adobe AIR. This is the code I'm using.
public function getDeviceMac():String {
return NetworkInfo.networkInfo.findInterfaces()[0].hardwareAddress.toString();
}
That function works ok in the PC (or when testing in the PC with ADL Mobile),
but in the iPad 2 or in an Android device (Acer Iconia A500) I get an error
about the property not existing. I suppose it's not implemented in the mobile
versions of AIR. It would be nice if it were implemented in future versions.
Is there any workaround for this?
I'm just seeking a way to uniquely identify a device, so is there
an alternative unique identifier I can get from AIR programatically
(maybe the UDID?), if it's not possible to get the MAC?
Thanks for your help!
