Get the iPad or Android device MAC address does not work (works in AIR Desktop)

I try to get the MAC address of the device to the user in Adobe AIR. This is the code that I use.

public function getDeviceMac (): String {}

Return NetworkInfo.networkInfo.findInterfaces () [0].hardwareAddress.toString ();

}

That works well in the PC (or during the test in the PC with ADL Mobile).

but in the iPad 2, or in a device Android (Acer Iconia A500) I get an error

on the property There is not. I guess it is not implemented in mobile

versions of AIR. It would be nice if it was applied in future versions.

There is no work around for this?

I'm looking for just a way to uniquely identify a device, is there

a unique identifier that I can get the AIR by programming

(maybe the UDID?), if it is not possible to obtain the MAC?

Thanks for your help!

Hello

You will need to iterate through all available interfaces and find the hardwareAddress.

NetworkInfo.networkInfo.findInterfaces () [1].hardwareAddress.toString ();

In addition, for Android, you will also need to specify the permissions ACCESS_NETWORK_STATE and ACCESS_WIFI_STATE in the following application descriptor.

]]>

-Pahup

Tags: Adobe AIR

Similar Questions

Maybe you are looking for

  • Update windows error code 0 x 80248015

    "erroe code: 0 x 80248015" windows Defender cannot verify the update of definition. I downloaded the "mpas-fe" update and run it, but it doesn't do anything, it simply retrieves the firle and what it... HELP know whaat to do? Windows defender, the de

  • When I try to connect to this URL, the connection times out

    I have always problems, and what was recommended only it solves so here it is again. I can go to this site ==> http://www.themonastery.org. I can in fact without any problems. In this program, The Unvcersal Life of the monastery church, is a link cal

  • Smartphones blackBerry how to remove this icon?

    Hi all A few days ago, I had some problems with my connection. When I asked a browser page, I got an indication that the internet was on my phone and that this specific request has been stored. Now I have internet again on my phone but still this ico

  • Paid to Muse per month subscription, but it's still the trial version...

    Paid to Muse per month subscription, but I can still see the trial counter to countdown, and I also have the option to purchase, I already did! What is going on?

  • Not clear about the number of allowed hosts

    Here's a blurb from the vCloud Architecture Toolkit v 3.0Each Center Virtual data provider NewCo corresponds to one and only one cluster HA/DRS of vSphere. While a cluster of vSphere 5 adapts to 32 guests, usually 8 to 12 is a good point of departure