Browser
You can use device.uuid
, click here to open the link to Universally Unique Identifier (UUID)
var string = device.uuid;
Useful JavaScript Libraries
-
fingerprintJS : "Fingerprinting is a technique, outlined in the research by Electronic Frontier Foundation, of anonymously identifying the web browser with accuracy of up to 94%.
-
Panopticlick : "If so, web sites may be able to track you, even if you limit or disable cookies. " em>
Android Application
Add the following permission on your AndroidManifest.xml:
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
To recover the IMEI from the device:
TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String imei = tm.getDeviceId();
References:
Unique device identification - Stack Overflow