How to get imei number, mac address(or uid) of mobile device on adf mobile

979 Views Asked by At

I need to get imei number and mac address of device (supposed to be works on both android and iphone) on adf mobile. Actually, even if i could get the device uid(unique identifier key) can be useful for me. Any comments about uid for 2 platforms that valid are welcome bgrds

2

There are 2 best solutions below

0
On

webyildirim, As per my knowledge you need to get the device os name, then based on OS condition you achieve the IMEI number, already posted for andriod, this one for Ios. thanks

NSString *ImeiNum = [[NetworkController sharedInstance] IMEI];

0
On

// Device ID ;

android_id = Secure.getString(ctx.getContentResolver(),Secure.ANDROID_ID);

// Device IMEI ;

        TelephonyManager tm = (TelephonyManager) ctx
                .getSystemService(Context.TELEPHONY_SERVICE);
        String Imei = tm.getDeviceId();