How to get IMEI number in Cordoba?

I am developing an application in Cordoba that requires programming the IMEI number of any device. Cordoba Provides a UUID , but this will not work for me, I need an IMEI number.

Or is there any plugin for directly getting an IMEI number?

"IMEI PhoneGap Plugin on Android", it gives a custom plugin that works only for Android, I need a plugin that supports both Android and ios.

"How to programmatically get IMEI / ESN devices in Android", it gives java code for android, so how can I convert java code to angularjs?

Is there a plugin available or not? It's simple.

+4
source share
3 answers

The easiest way to get IMEI only on an Android device

$ cordova plugin add https://github.com/vliesaputra/DeviceInformationPlugin.git

The list above is the cordova plugin for receiving device information. To get the method of this plugin, create JSON in which you can see the IMEI number of your Android device.

Code Usage:

var deviceInfo = cordova.require("cordova/plugin/DeviceInformation");
deviceInfo.get(
   function(result) {
      console.log("result = " + result);
   },function() {
      console.log("error");
});

Without using the code:

  • In devices where you insert a SIM card
  • In the device settings-> About phone-> Status-> IMEI OR (SIM card status → IMEI)
  • Dial: * # 06 #

IMEI SIM-. IMEI SIM-LESS. (: - SIM-)

+4

, Android. iOS - Apple . UUID .

+1

Another cordova plugin not mentioned here cordova-plugin-imei

https://www.npmjs.com/package/cordova-plugin-imei

Example:

window.plugins.imei.get(
  function(imei) {
    console.log("got imei: " + imei);
  },
  function() {
    console.log("error loading imei");
  }
);
0
source

All Articles