There was a small project I did which required the IMEI number to be read. I used the following code to read the IMEI number on Android using NativeScript.
AndroidManifest.xml
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
NativeScript code
function getIMEI(){
var context = utils.ad.getApplicationContext();
var tm = context.getSystemService(android.content.Context.TELEPHONY_SERVICE);
return tm.getDeviceId()
}
Then call getIMEI()
where there is a need. Simple.