ane-device-info-util is a native extension that allows the application to read identification info from an iOS device. It is able to read the SSID, the MAC address and the device name.
Sample
package { import com.debokeh.anes.utils.DeviceInfoUtil; import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldAutoSize; public class Main extends Sprite { public function Main() { // for debug var tf:TextField; addChild(tf = new TextField); tf.autoSize = TextFieldAutoSize.LEFT; // gathering info tf.text = "CurrentSSID : " + DeviceInfoUtil.getCurrentSSID(); tf.appendText("\nCurrentMACAddress : " + DeviceInfoUtil.getCurrentMACAddress()); tf.appendText("\nCurrentDeviceName : " + DeviceInfoUtil.getCurrentDeviceName()); } } }
How can i run this on IOS simulator on Mac ?
I don’t think those ANEs that collect device info can run on iOS simulator, but that’s something I read a few months ago. Try to ping @katopz (the author) and ask for that.
RT @as3gamegears: New: ane-device-info-util (native extension to read device identification info on iOS) http://t.co/o0pQxatnHh #as3 #flash…